Files
dotfiles/scripts/powermenu.sh
T
funman300 0cd43b9e54 Switch greeter from tuigreet to regreet
- Replace greetd-tuigreet with greetd-regreet + cage in packages.txt
- Add greetd/config.toml and greetd/regreet.toml (Materia-dark theme)
- Update install.sh to deploy greetd configs to /etc/greetd/
- Fix powermenu.sh awk parsing (use $NF instead of $2 for icon glyphs)
2026-04-22 17:15:17 -07:00

19 lines
449 B
Bash
Executable File

#!/bin/bash
CHOICE=$(printf " Logout\n Restart\n Sleep\n Shutdown" \
| wofi --dmenu \
--prompt "Power:" \
--width 300 \
--height 220 \
--hide-scroll \
--no-actions \
--insensitive \
| awk '{print $NF}')
case "$CHOICE" in
Logout) niri msg action quit ;;
Restart) systemctl reboot ;;
Sleep) systemctl suspend ;;
Shutdown) systemctl poweroff ;;
esac