2021-08-28 20:09:31 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
op=$( echo -e " Poweroff\n Reboot\n Suspend\n Lock\n Logout" | wofi -i --dmenu | awk '{print tolower($2)}' )
|
|
|
|
|
|
|
|
case $op in
|
|
|
|
poweroff)
|
|
|
|
;&
|
|
|
|
reboot)
|
|
|
|
;&
|
|
|
|
suspend)
|
|
|
|
systemctl $op
|
|
|
|
;;
|
|
|
|
lock)
|
|
|
|
#loginctl lock-session
|
2022-04-03 22:54:40 +03:00
|
|
|
swaylock -f -c 000000
|
2021-08-28 20:09:31 +03:00
|
|
|
;;
|
|
|
|
logout)
|
|
|
|
swaymsg exit
|
|
|
|
;;
|
|
|
|
esac
|