From 58dfd563ea53dc1bf57018e9ff72fda6f1b9702a Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 3 Jul 2019 18:00:42 +0300 Subject: Flashfocus parity --- .config/i3/config##desktop.Linux.Lowe | 2 -- .config/i3/config##desktop.Linux.Maus | 58 ++++++++++++++++++++++++++++++++--- 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe index 69b3edd..106cbe5 100644 --- a/.config/i3/config##desktop.Linux.Lowe +++ b/.config/i3/config##desktop.Linux.Lowe @@ -39,7 +39,6 @@ bindsym $mod+Shift+t exec --no-startup-id ~/bin/td # swap caps lock and escape, set keyboard layout, 35 is ]/ΓΌ (layout agnostic) bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" - # use flameshot with print screen bindsym Print exec flameshot gui @@ -230,7 +229,6 @@ mode "$mode_gaps_inner" { 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 diff --git a/.config/i3/config##desktop.Linux.Maus b/.config/i3/config##desktop.Linux.Maus index 88f7e71..33c2484 100644 --- a/.config/i3/config##desktop.Linux.Maus +++ b/.config/i3/config##desktop.Linux.Maus @@ -29,10 +29,12 @@ exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf # set the wallpaper last (hopefully after xrandr) exec --no-startup-id ~/.fehbg +exec_always --no-startup-id flashfocus + gaps inner 0 gaps outer 0 -smart_gaps on +# smart_gaps on # Font for window titles font pango:Lato 11 @@ -187,6 +189,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" { @@ -199,12 +202,59 @@ mode "οŒ’ (L)ock (S)ignout (R)eboot (P)oweroff" { 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 -for_window [class=".*"] border pixel 3 + 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="^Steam$"] 9 assign [class="^Thunderbird$"] 8 -- cgit v1.2.3-70-g09d2