This commit is contained in:
JGH0
2026-01-26 08:32:46 +01:00
parent bf8f205403
commit fbc0371b64
3 changed files with 172 additions and 0 deletions

12
overlay-menu.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Fullscreen overlay menu
OPTIONS="Reboot\nShutdown\nLock Screen\nCancel"
CHOICE=$(echo -e $OPTIONS | rofi -dmenu -fullscreen -p "Action" -lines 4 -bw 2 -kb-accept-entry 'Return' -kb-cancel 'Escape')
case "$CHOICE" in
"Reboot") systemctl reboot ;;
"Shutdown") systemctl poweroff ;;
"Lock Screen") i3lock ;;
"Cancel"|"") exit 0 ;;
esac