mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
chaged structure and added intsal script
This commit is contained in:
12
i3/overlay-menu.sh
Executable file
12
i3/overlay-menu.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user