[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:
parent
71ec5b31cf
commit
502d3ef821
1 changed files with 7 additions and 8 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
set $modemod Mod1
|
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
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
|
@ -102,9 +102,8 @@ gaps outer 0
|
||||||
# increase/decrease inner gapping
|
# increase/decrease inner gapping
|
||||||
bindsym $mod+shift+g gaps inner current plus 10
|
bindsym $mod+shift+g gaps inner current plus 10
|
||||||
bindsym $mod+g gaps inner current minus 10
|
bindsym $mod+g gaps inner current minus 10
|
||||||
# increase/decrease outer gapping
|
# increase/decrease border sizes
|
||||||
bindsym $mod+shift+b gaps outer current plus 10
|
bindsym $mod+b border toggle 2
|
||||||
bindsym $mod+b gaps outer current minus 10
|
|
||||||
|
|
||||||
# Define names for default workspaces for which we configure key bindings later on.
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
# We use variables to avoid repeating the names in multiple places.
|
# 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
|
bindsym $modemod+m mode $mode_media
|
||||||
|
|
||||||
# reload the configuration file
|
# 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)
|
# 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
|
# set a pretty wallpaper
|
||||||
exec_always --no-startup-id feh --bg-scale ~/pictures/wall.jpg
|
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
|
# set up scratch pad for todo and 'drop-down' terminal
|
||||||
# to be called to current workspace when needed
|
# 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 --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 "dropdown" --class scratchpad,Alacritty
|
||||||
for_window [class="Alacritty" instance="scratchpad"] floating enable
|
for_window [class="Alacritty" instance="scratchpad"] floating enable
|
||||||
for_window [class="Alacritty" instance="scratchpad"] move scratchpad
|
for_window [class="Alacritty" instance="scratchpad"] move scratchpad
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue