all repos — nixfiles @ 6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6

System and user configuration, managed by nix and home-manager

i3: Configure gaps

Alan Pearce
commit

6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6

parent

d0851a07ff2101239fc5ba4c6dfb856c9984526d

1 file changed, 41 insertions(+), 0 deletions(-)

jump to
M i3/.config/i3/configi3/.config/i3/config
@@ -189,6 +189,43 @@ bindsym Return mode "default"
bindsym Escape mode "default" } +set $mode_gaps Gaps: (o) outer, (i) inner +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} + bindsym $mod+Shift+r mode "resize" set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
@@ -236,7 +273,11 @@ client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00 client.background $base07 +new_window pixel 1 +new_float normal hide_edge_borders both +gaps inner 5 +gaps outer 5 for_window [class="Pinentry$"] floating enable for_window [class="Google-chrome"] border pixel 1