17 lines
385 B
Bash
Executable File
17 lines
385 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
entries="Lock Suspend Reboot Shutdown"
|
|
|
|
selected=$(printf '%s\n' $entries | wofi --conf=$HOME/.config/wofi/config.power --style=$HOME/.config/wofi/style.widgets.css | awk '{print tolower($1)}')
|
|
|
|
case $selected in
|
|
lock)
|
|
swaylock;;
|
|
suspend)
|
|
exec systemctl suspend;;
|
|
reboot)
|
|
exec systemctl reboot;;
|
|
shutdown)
|
|
exec systemctl poweroff -i;;
|
|
esac
|