aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 21:38:11 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 21:38:11 +0200
commitcb475eca2599f38ed47a6ccdc4d0f010e99933c1 (patch)
treecee75dbf5a780ec1a123ddd7b2a165859c419fcf
parentd219fa53cbd5298cc41d3610949df14f62e50fd5 (diff)
downloadrofi-scripts-master.tar.gz
rofi-scripts-master.zip
feat(powermenu): switch the TRADFRI bulb off before poweroff, reboot and sleepHEADmaster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rwxr-xr-xbin/udt-powermenu.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/udt-powermenu.sh b/bin/udt-powermenu.sh
index f867033..d730ff9 100755
--- a/bin/udt-powermenu.sh
+++ b/bin/udt-powermenu.sh
@@ -62,16 +62,19 @@ run_cmd() {
notify-send 'system shutdown' 'the system is going to shutdown now'
sleep 1
udt-ledstrip off
+ udt-bulb 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
+ udt-bulb 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
+ udt-bulb off
/usr/bin/loginctl suspend
elif [[ $1 == '--logout' ]]; then
hyprctl dispatch 'hl.dsp.exit()'