From 6dbdaed9e2586d8198105fcbb73610aff741d404 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 2 Aug 2019 14:29:11 +0300 Subject: Add mobile gaps controls --- .config/i3/config##mobile.Linux.Luchs | 56 +++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/.config/i3/config##mobile.Linux.Luchs b/.config/i3/config##mobile.Linux.Luchs index f09618f..3eefb06 100644 --- a/.config/i3/config##mobile.Linux.Luchs +++ b/.config/i3/config##mobile.Linux.Luchs @@ -200,6 +200,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" { @@ -210,12 +211,61 @@ 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" +} -for_window [class=".*"] border pixel 3 -for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable +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 0 +for_window [class="Zotero" instance="Toplevel" title="Quick Format Citation"] floating enable for_window [class="Zotero" instance="Toplevel" title="Progress"] floating enable assign [class="^Thunderbird$"] 8 -- cgit v1.2.3-70-g09d2