dotfiles/home/Scripts/sway-exit.sh
Marko Korhonen b4e594aa28 Added lock option to exit script
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
2020-01-08 23:06:53 +02:00

31 lines
278 B
Bash
Executable file

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