foodotfiles/home/Scripts/sway-exit.sh
Marko Korhonen b1335a3628 Removed commit history
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
2019-10-26 20:05:31 +03:00

27 lines
235 B
Bash
Executable File

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