From 502d3ef82145c5319b3aaf0249961f77fd64c0b3 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Mar 2020 19:16:25 +0100 Subject: [PATCH] [i3] Add border toggle, fix startup apps Added a border toggle on mod4+b, toggles through no border (default), plain border, border and window title. Removed individual changing the outer gaps keybind -- gaps are changed along with resizing inner gaps, and who really needs to seperately change only the outer ones. Substituted exec for exec_always to not repeatedly start copies of 'dropdown' windows whenever restarting i3. Changed a couple keybindings around that should largely not be noticeable during normal operation, for reloading and restarting i3. --- i3/.config/i3/config | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 3b27833..258cad5 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -11,7 +11,7 @@ set $mod Mod4 set $modemod Mod1 -set $font "pango:Fira Code 8" +set $font "pango:Iosevka 8" # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -102,9 +102,8 @@ gaps outer 0 # increase/decrease inner gapping bindsym $mod+shift+g gaps inner current plus 10 bindsym $mod+g gaps inner current minus 10 -# increase/decrease outer gapping -bindsym $mod+shift+b gaps outer current plus 10 -bindsym $mod+b gaps outer current minus 10 +# increase/decrease border sizes +bindsym $mod+b border toggle 2 # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. @@ -205,9 +204,9 @@ bindsym $modemod+r mode "resize" bindsym $modemod+m mode $mode_media # reload the configuration file -bindsym $mod+Shift+y reload +bindsym $mod+F12 reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart +bindsym $mod+Shift+F12 restart # set a pretty wallpaper exec_always --no-startup-id feh --bg-scale ~/pictures/wall.jpg @@ -225,8 +224,8 @@ for_window [class="^spotify$"] move to workspace 10 # set up scratch pad for todo and 'drop-down' terminal # to be called to current workspace when needed -exec_always --no-startup-id alacritty --title "todo.md" --class scratchpad,Alacritty -e nvim ~/todo.md -exec_always --no-startup-id alacritty --title "dropdown" --class scratchpad,Alacritty +exec --no-startup-id alacritty --title "todo.md" --class scratchpad,Alacritty -e nvim ~/todo.md +exec --no-startup-id alacritty --title "dropdown" --class scratchpad,Alacritty for_window [class="Alacritty" instance="scratchpad"] floating enable for_window [class="Alacritty" instance="scratchpad"] move scratchpad