blob: 79094bebbbcb6c9af91767063365d25bd6a0a2a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# vim: ft=swayconfig
set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default"
bindsym e exec --no-startup-id swaymsg exit, mode "default"
bindsym s exec --no-startup-id systemctl suspend, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+q mode "$mode_system"
set $screenshot Screenshot: (s)elect or (w)indow or (o)tput or (d)desktop
mode "$screenshot" {
bindsym --locked s exec --no-startup-id ~/.config/sway/scripts/screenshot select, mode "default"
bindsym --locked w exec --no-startup-id ~/.config/sway/scripts/screenshot window, mode "default"
bindsym --locked o exec --no-startup-id ~/.config/sway/scripts/screenshot output, mode "default"
bindsym --locked d exec --no-startup-id ~/.config/sway/scripts/screenshot desktop, mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+s mode "$screenshot"
|