mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
feat: replace wlogout with tofi
This commit is contained in:
parent
4a99766e87
commit
5706fe32cb
4 changed files with 20 additions and 7 deletions
16
home/toast/bin/powermenu.sh
Executable file
16
home/toast/bin/powermenu.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue