foodotfiles/home/Scripts/sway-exit.sh
Marko Korhonen d916f64d98
Fix typo
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
2020-01-08 23:08:27 +02:00

31 lines
280 B
Bash
Executable File

#!/bin/bash
RESP=$(cat <<EOF | fzf
Exit
Suspend
Lock
Reboot
Shutdown
EOF
);
case "$RESP" in
Exit)
swaymsg exit
;;
Suspend)
systemctl suspend
;;
Reboot)
systemctl reboot
;;
Shutdown)
systemctl poweroff
;;
Lock)
loginctl lock-session
;;
*)
exit 1
esac