dotfiles/symlinks/config/sway/conf.d/71_system_menu

20 lines
799 B
Plaintext

# 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 {
bindsym l exec --no-startup-id swaylock, mode "default"
bindsym e exec --no-startup-id swaymsg exit, mode "default"
bindsym s exec --no-startup-id swaylock && systemctl suspend, mode "default"
bindsym h exec --no-startup-id swaylock && systemctl hibernate, mode "default"
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