Added overlay for rofi menus

This commit is contained in:
2026-07-02 08:21:47 +02:00
parent e1c3745f3b
commit 379e008024
9 changed files with 105 additions and 13 deletions
+4 -1
View File
@@ -3,6 +3,9 @@
set -euo pipefail
awesome-client 'show_dim()' >/dev/null 2>&1
trap 'awesome-client "hide_dim()" >/dev/null 2>&1' EXIT
options=" Logout\n Restart\n Shutdown"
chosen=$(echo -e "$options" | rofi -dmenu -i -p "Power" -markup-rows \
@@ -13,7 +16,7 @@ chosen=$(echo -e "$options" | rofi -dmenu -i -p "Power" -markup-rows \
case "$chosen" in
*Logout*)
awesome-client "awesome.quit()" 2>/dev/null || echo "awesome.quit()" | awesome-client
loginctl terminate-session ${XDG_SESSION_ID-}
;;
*Restart*)
loginctl reboot