Added lock option to exit script

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2020-01-08 23:06:53 +02:00
parent 8698934559
commit 1e4dc3098d
No known key found for this signature in database
GPG Key ID: 911B85FBC6003FE5

View File

@ -2,7 +2,8 @@
RESP=$(cat <<EOF | fzf
Exit
Sleep
Suspend
Lock
Reboot
Shutdown
EOF
@ -21,6 +22,9 @@ case "$RESP" in
Shutdown)
systemctl poweroff
;;
Lock)
loginctl lock-session
;;
*)
exit 1
esac