12 lines
312 B
Bash
Executable file
12 lines
312 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CHOSEN=$(printf "Lock\nSuspend\nReboot\nShutdown\nLog Out" | tofi --config "$XDG_CONFIG_HOME"/tofi/config)
|
|
|
|
case "$CHOSEN" in
|
|
"Lock") hyprlock ;;
|
|
"Suspend") loginctl suspend ;;
|
|
"Reboot") loginctl reboot ;;
|
|
"Shutdown") loginctl poweroff ;;
|
|
"Log Out") hyprctl dispatch exit ;;
|
|
*) exit 1 ;;
|
|
esac
|