This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 317
Example Configuration
Ingo Bürk edited this page Mar 22, 2019
·
3 revisions
Here is an extensive example configuration which adds binding modes to manipulate gaps at runtime.
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"
}
mode "$mode_gaps_horiz" {
bindsym plus gaps horizontal current plus 5
bindsym minus gaps horizontal current minus 5
bindsym 0 gaps horizontal current set 0
bindsym Shift plus gaps horizontal all plus 5
bindsym Shift minus gaps horizontal all minus 5
bindsym Shift 0 gaps horizontal all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_verti" {
bindsym plus gaps vertical current plus 5
bindsym minus gaps vertical current minus 5
bindsym 0 gaps vertical current set 0
bindsym Shift plus gaps vertical all plus 5
bindsym Shift minus gaps vertical all minus 5
bindsym Shift 0 gaps vertical all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_top" {
bindsym plus gaps top current plus 5
bindsym minus gaps top current minus 5
bindsym 0 gaps top current set 0
bindsym Shift plus gaps top all plus 5
bindsym Shift minus gaps top all minus 5
bindsym Shift 0 gaps top all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_right" {
bindsym plus gaps right current plus 5
bindsym minus gaps right current minus 5
bindsym 0 gaps right current set 0
bindsym Shift plus gaps right all plus 5
bindsym Shift minus gaps right all minus 5
bindsym Shift 0 gaps right all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_bottom" {
bindsym plus gaps bottom current plus 5
bindsym minus gaps bottom current minus 5
bindsym 0 gaps bottom current set 0
bindsym Shift plus gaps bottom all plus 5
bindsym Shift minus gaps bottom all minus 5
bindsym Shift 0 gaps bottom all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}
mode "$mode_gaps_left" {
bindsym plus gaps left current plus 5
bindsym minus gaps left current minus 5
bindsym 0 gaps left current set 0
bindsym Shift plus gaps left all plus 5
bindsym Shift minus gaps left all minus 5
bindsym Shift 0 gaps left all set 0
bindsym Return mode "$mode_gaps"
bindsym Escape mode "default"
}