chezmoi/dot_config/waybar/scripts/executable_power-menu.sh
kjuulh b3a17d2abd
Add .config/waybar/config
Add .config/waybar/scripts/PBPbattery.sh
Add .config/waybar/scripts/keyhint.sh
Add .config/waybar/scripts/power-menu.sh
Add .config/waybar/scripts/weather.sh
Add .config/waybar/style.css
2023-07-28 13:14:56 +02:00

17 lines
385 B
Bash

#!/bin/bash
entries="Logout 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
logout)
swaymsg exit;;
suspend)
exec systemctl suspend;;
reboot)
exec systemctl reboot;;
shutdown)
exec systemctl poweroff -i;;
esac