mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-08 13:10:37 +00:00
20e8fc26f1
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
31 lines
280 B
Bash
Executable File
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
|