11 lines
330 B
Bash
Executable File
11 lines
330 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
case "$(printf "sleep\nreboot\nshutdown\nhybrid-sleep\nhibernate" | tofi --config .config/tofi/powermenu_config)" in
|
|
sleep) systemctl suspend;;
|
|
reboot) systemctl reboot;;
|
|
shutdown) shutdown now ;;
|
|
hybrid-sleep) hyprlock; systemctl suspend-then-hibernate;;
|
|
hibernate) systemctl hibernate;;
|
|
*) exit 1 ;;
|
|
esac
|