[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.
This commit is contained in:
Marty Oehme 2020-03-02 19:16:25 +01:00
parent 71ec5b31cf
commit 502d3ef821
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -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