2021-01-13 07:10:31 +00:00
|
|
|
# Setup text for system mode
|
|
|
|
set $mode_system "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (S) shutdown"
|
|
|
|
|
|
|
|
# System mode - system menu
|
|
|
|
mode $mode_system {
|
2024-08-29 08:16:09 +00:00
|
|
|
bindsym l exec --no-startup-id swaylock, mode "default"
|
2021-01-13 07:10:31 +00:00
|
|
|
bindsym e exec --no-startup-id swaymsg exit, mode "default"
|
2024-08-29 08:16:09 +00:00
|
|
|
bindsym s exec --no-startup-id swaylock && systemctl suspend, mode "default"
|
|
|
|
bindsym h exec --no-startup-id swaylock && systemctl hibernate, mode "default"
|
2021-01-13 07:10:31 +00:00
|
|
|
bindsym r exec --no-startup-id systemctl reboot, mode "default"
|
|
|
|
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
|
|
|
|
|
|
|
# back to normal: Enter or Escape
|
|
|
|
bindsym Return mode "default"
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Use mod+F4 to open up system menu
|
|
|
|
bindsym $mod+F4 mode $mode_system
|