added tofi config

This commit is contained in:
2025-03-29 12:23:04 +05:00
parent 9fb0e7a36a
commit de929892e1
2 changed files with 34 additions and 0 deletions

15
.config/tofi/powermenu.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
op=$( echo -e " Shutdown\n Reboot\n Suspend\n" | tofi | awk '{print tolower($2)}' )
case $op in
shutdown)
shutdown now
;;
reboot)
shutdown -r now
;;
suspend)
systemctl suspend
;;
esac