mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-04 18:00:20 +00:00
b1335a3628
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
27 lines
235 B
Bash
Executable File
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
|