mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
Added lock option to exit script
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
8698934559
commit
1e4dc3098d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user