diff options
author | Alan Pearce | 2017-09-15 13:03:47 +0200 |
---|---|---|
committer | Alan Pearce | 2017-09-15 13:03:47 +0200 |
commit | 6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6 (patch) | |
tree | 721360020833b25551267dab14c4272fed950b6c /i3 | |
parent | d0851a07ff2101239fc5ba4c6dfb856c9984526d (diff) | |
download | nixfiles-6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6.tar.lz nixfiles-6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6.tar.zst nixfiles-6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6.zip |
i3: Configure gaps
Diffstat (limited to 'i3')
-rw-r--r-- | i3/.config/i3/config | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/i3/.config/i3/config b/i3/.config/i3/config index c5d5e44d..bc205b3b 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -189,6 +189,43 @@ mode "resize" { 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 |