26 lines
235 B
Bash
Executable file
26 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
|