19 lines
385 B
Bash
Executable File
19 lines
385 B
Bash
Executable File
#!/bin/sh
|
|
|
|
choice=$(echo -e "Lock\nLogout\nReboot\nShutdown" | hyprlauncher -m)
|
|
case "$choice" in
|
|
Lock)
|
|
hyprlock
|
|
;;
|
|
Logout)
|
|
# hyprctl dispatch exit
|
|
command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
|
;;
|
|
Reboot)
|
|
systemctl reboot
|
|
;;
|
|
Shutdown)
|
|
systemctl poweroff
|
|
;;
|
|
esac
|