set $mode_shutdown "\ \ \ (l)lock \ (e)logout \ (r)reboot \ (u)suspend \ (s)shutdown \ " set $purge_cliphist [ $purge_cliphist_logout == 'true' ] && rm -f $HOME/.cache/cliphist/db || exit 0 mode --pango_markup $mode_shutdown { # lock $bindsym l mode "default", exec $locking # logout $bindsym e exec $purge_cliphist; exec swaymsg exit # suspend $bindsym u mode "default", exec systemctl suspend # shutdown $bindsym s exec $purge_cliphist; exec systemctl poweroff # reboot $bindsym r exec $purge_cliphist; exec systemctl reboot # Return to default mode. $bindsym Escape mode "default" } ## Launch // Exit Menu ## $bindsym $mod+Shift+e mode $mode_shutdown