mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 19:45:40 +00:00
16 lines
325 B
Bash
Executable file
16 lines
325 B
Bash
Executable file
#!/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
|