| 1 | |
| 2 | |
| 3 | |
| 4 | set $mode_resize " resize [hjkl] small [HJKL] big [Esc] done" |
| 5 | mode $mode_resize { |
| 6 | bindsym $left resize shrink width 20px |
| 7 | bindsym $down resize grow height 20px |
| 8 | bindsym $up resize shrink height 20px |
| 9 | bindsym $right resize grow width 20px |
| 10 | bindsym Left resize shrink width 20px |
| 11 | bindsym Down resize grow height 20px |
| 12 | bindsym Up resize shrink height 20px |
| 13 | bindsym Right resize grow width 20px |
| 14 | bindsym Shift+$left resize shrink width 80px |
| 15 | bindsym Shift+$down resize grow height 80px |
| 16 | bindsym Shift+$up resize shrink height 80px |
| 17 | bindsym Shift+$right resize grow width 80px |
| 18 | bindsym Return mode "default" |
| 19 | bindsym Escape mode "default" |
| 20 | bindsym $mod+r mode "default" |
| 21 | } |
| 22 | |
| 23 | bindsym $mod+r mode $mode_resize |
| 24 | |
| 25 | |
| 26 | set $mode_pass " passthrough [Super+F12] exit" |
| 27 | mode $mode_pass { |
| 28 | bindsym $mod+F12 mode "default" |
| 29 | } |
| 30 | |
| 31 | bindsym $mod+F12 mode $mode_pass |
| 32 | |
| 33 | |
| 34 | set $mode_system " system [l]ock [e]xit [s]uspend [r]eboot [p]oweroff [Esc]" |
| 35 | mode $mode_system { |
| 36 | bindsym l exec $lock, mode "default" |
| 37 | bindsym e exec swaymsg exit, mode "default" |
| 38 | bindsym s exec systemctl suspend, mode "default" |
| 39 | bindsym r exec systemctl reboot, mode "default" |
| 40 | bindsym p exec systemctl poweroff, mode "default" |
| 41 | bindsym Return mode "default" |
| 42 | bindsym Escape mode "default" |
| 43 | } |
| 44 | |
| 45 | bindsym $mod+Shift+x mode $mode_system |