feat: replace wlogout with tofi

This commit is contained in:
lightly-toasted 2025-08-05 16:31:04 +09:00
parent 4a99766e87
commit 5706fe32cb
4 changed files with 20 additions and 7 deletions

16
home/toast/bin/powermenu.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
choice=$(printf """
󰍃 Logout
⏻ Shutdown
 Reboot
 Suspend
 Hibernate
""" | tofi)
case "$choice" in
"󰍃 Logout") uwsm stop ;;
"⏻ Shutdown") systemctl poweroff ;;
" Reboot") systemctl reboot ;;
" Suspend") systemctl suspend ;;
" Hibernate") systemctl hibernate ;;
esac