forked from extern/nix-config
Add miscellaneous changes to i3/config
Add some unpushed changes done to i3/config before removing the config file entirely. In particular, this commit: - Increases the size of window borders - Adds a command to open a floating terminal - Makes mpv windows float by default - Adds an option to specify the minimum and maximum sizes for floating windows - Adds an easy way to show/hide floating windows ("The Hidden Workspace") - (Re)loads polybar when starting i3
This commit is contained in:
parent
64aaefd341
commit
5a26ef6ca5
@ -28,8 +28,9 @@ set $alt Mod1
|
||||
font pango:Hack 12
|
||||
|
||||
# Add a subtle border to all windows (allows us to easily see which one has focus)
|
||||
for_window [class="^.*"] border pixel 1
|
||||
new_window pixel 1
|
||||
# Note that this used to be 1px, but changed to 10 so it's easier to see without transparency
|
||||
for_window [class="^.*"] border pixel 10
|
||||
new_window pixel 10
|
||||
|
||||
####################################################################
|
||||
# i3 Controls - These are the core keys that you use to manage
|
||||
@ -41,6 +42,14 @@ new_window pixel 1
|
||||
# Open a new terminal
|
||||
bindsym $mod+Return exec termite
|
||||
|
||||
# Open a new floating terminal
|
||||
for_window [instance="Floating"] floating enable
|
||||
bindsym $mod+Shift+Return exec termite --name "Floating"
|
||||
|
||||
# Specify a minimum and / or maximum size for floating windows
|
||||
#floating_minimum_size <width>x<height>
|
||||
#floating_maximum_size <width>x<height>
|
||||
|
||||
# Close the currently focused window
|
||||
bindsym $mod+q kill
|
||||
bindsym $mod+Shift+q kill
|
||||
@ -83,6 +92,8 @@ bindsym $mod+space focus mode_toggle
|
||||
|
||||
for_window [class="^feh$"] floating enable
|
||||
for_window [instance="^feh$"] floating enable
|
||||
for_window [class="^mpv$"] floating enable
|
||||
for_window [instance="^mpv$"] floating enable
|
||||
|
||||
# ========================= Workspaces =========================
|
||||
|
||||
@ -139,6 +150,18 @@ mode "resize" {
|
||||
# Keybinding to enter resize mode
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# ========================= The Hidden Workspace =========================
|
||||
|
||||
# Move the current window to the hidden workspace
|
||||
bindsym $mod+t move scratchpad
|
||||
|
||||
# Toggle between showing and hiding windows from the hidden workspace
|
||||
bindsym $mod+i scratchpad show
|
||||
|
||||
# Toggle program-specific windows
|
||||
# Note that the program must be started with e.g. termite --name "cmus"
|
||||
#bindsym $mod+c [instance="cmus"] scratchpad show
|
||||
|
||||
# ========================= Lock Screen =========================
|
||||
|
||||
# Add a keybinding to instantly lock the screen
|
||||
@ -222,4 +245,7 @@ client.focused_inactive $unfocused $unfocused $text $unfocused
|
||||
client.unfocused $unfocused $unfocused $text $unfocused
|
||||
client.urgent $urgent $urgent $text $urgent
|
||||
|
||||
# (Re)load polybar when starting i3
|
||||
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||
|
||||
# vim:ft=dosini
|
||||
|
Loading…
Reference in New Issue
Block a user