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