From d219fa53cbd5298cc41d3610949df14f62e50fd5 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 21:09:06 +0200 Subject: fix(powermenu): set the LED strip before poweroff, reboot and sleep rc.6 takes the network down before Hyprland hears it is exiting, so the session's shutdown handler could not reach the strip and it stayed lit. Poweroff and reboot now run `udt-ledstrip off` first, and sleep runs `udt-ledstrip sleep`, which breathes the accent while suspended. Co-Authored-By: Claude Opus 5.5 --- bin/udt-powermenu.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/udt-powermenu.sh b/bin/udt-powermenu.sh index 1892ef2..f867033 100755 --- a/bin/udt-powermenu.sh +++ b/bin/udt-powermenu.sh @@ -61,14 +61,17 @@ run_cmd() { if [[ $1 == '--shutdown' ]]; then notify-send 'system shutdown' 'the system is going to shutdown now' sleep 1 + udt-ledstrip off /usr/bin/loginctl poweroff elif [[ $1 == '--reboot' ]]; then notify-send 'system reboot' 'the system is going to reboot now' sleep 1 + udt-ledstrip off /usr/bin/loginctl reboot elif [[ $1 == '--sleep' ]]; then notify-send 'suspend to ram' 'the system is going to sleep now' sleep 1 + udt-ledstrip sleep /usr/bin/loginctl suspend elif [[ $1 == '--logout' ]]; then hyprctl dispatch 'hl.dsp.exit()' -- cgit v1.2.3