From 6ea264aa3cc597cdc96071cebd97b3e4d5e02dd6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 15 Sep 2017 13:03:47 +0200 Subject: i3: Configure gaps --- i3/.config/i3/config | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'i3') diff --git a/i3/.config/i3/config b/i3/.config/i3/config index c5d5e44..bc205b3 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 -- cgit 1.4.1