From 6928d228ce19650e1795aff25aed0bb3623cfc7e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 2 Jun 2019 16:57:56 +0300 Subject: Add gaps control to i3 --- .config/i3/config##desktop.Linux.Lowe | 53 ++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) (limited to '.config/i3') diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe index 0ca3158..ea0d831 100644 --- a/.config/i3/config##desktop.Linux.Lowe +++ b/.config/i3/config##desktop.Linux.Lowe @@ -162,6 +162,7 @@ mode "resize" { bindsym Escape mode "default" bindsym $mod+r mode "default" } +bindsym $mod+r mode "resize" # session mode " (L)ock (S)ignout (R)eboot (P)oweroff" { @@ -172,9 +173,59 @@ mode " (L)ock (S)ignout (R)eboot (P)oweroff" { bindcode 66 mode "default" } bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" + bindsym $mod+Shift+Escape exec --no-startup-id ~/bin/power.sh -bindsym $mod+r mode "resize" +set $mode_gaps Gaps: (o)uter, (i)nner +#, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global) +# set $mode_gaps_left Left 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 h mode "$mode_gaps_horiz" + # bindsym v mode "$mode_gaps_verti" + # bindsym t mode "$mode_gaps_top" + # bindsym r mode "$mode_gaps_right" + # bindsym b mode "$mode_gaps_bottom" + # bindsym l mode "$mode_gaps_left" + # bindsym Return mode "$mode_gaps" + 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 "$mode_gaps" + 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 "$mode_gaps" + bindsym Escape mode "default" +} + for_window [class=".*"] border pixel 3 for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable -- cgit v1.2.3-70-g09d2