2019-10-26 20:05:31 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
RESP=$(cat <<EOF | fzf
|
|
|
|
Exit
|
2020-01-08 23:06:53 +02:00
|
|
|
Suspend
|
|
|
|
Lock
|
2019-10-26 20:05:31 +03:00
|
|
|
Reboot
|
|
|
|
Shutdown
|
|
|
|
EOF
|
|
|
|
);
|
|
|
|
|
|
|
|
case "$RESP" in
|
|
|
|
Exit)
|
|
|
|
swaymsg exit
|
|
|
|
;;
|
2020-01-08 23:08:27 +02:00
|
|
|
Suspend)
|
2019-10-26 20:05:31 +03:00
|
|
|
systemctl suspend
|
|
|
|
;;
|
|
|
|
Reboot)
|
|
|
|
systemctl reboot
|
|
|
|
;;
|
|
|
|
Shutdown)
|
|
|
|
systemctl poweroff
|
|
|
|
;;
|
2020-01-08 23:06:53 +02:00
|
|
|
Lock)
|
|
|
|
loginctl lock-session
|
|
|
|
;;
|
2019-10-26 20:05:31 +03:00
|
|
|
*)
|
|
|
|
exit 1
|
|
|
|
esac
|