From 02277a3ae2212f94060d530a21e07b724a8049bd Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 12 Mar 2019 16:50:04 +0100 Subject: [PATCH] allow toggling i3 gaps with mod+g/G --- .config/i3/config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 5a7945e..4d6531b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -94,6 +94,14 @@ bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child +# disable titles and borders, necessary for i3gaps to work apparently +for_window [class="^.*"] border pixel 0 +# no gaps if there is only 1 window - I am satisfied with choosing manually +#smart_gaps on +# enable / disable gaps (g disables, G enables) +bindsym $mod+shift+g gaps inner current set 10; gaps outer current set 10 +bindsym $mod+g gaps inner current set 0; gaps outer current set 0 + # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. set $ws1 "1"