aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 21:08:57 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 21:08:57 +0200
commit64270272c4de5e3c2563e2f30ef35e7efaa384ae (patch)
tree67108581dca90fde1202f1df12a650dafd0e4491 /AGENTS.md
parente00d8be5e8aff7a6588bd3f932a6706574a07ee6 (diff)
downloadunified-desktop-theme-64270272c4de5e3c2563e2f30ef35e7efaa384ae.tar.gz
unified-desktop-theme-64270272c4de5e3c2563e2f30ef35e7efaa384ae.zip
feat(ledstrip): breathe the accent while suspended
`udt-ledstrip sleep` plays the accent alone as the strip's breathing scene, desaturated to 60 and at half brightness. Its DP 51 layout, mode 0x03 with flags 0, was read off the strip's status push while the Tuya app set a breathing scene; the selftest checks it against that capture. AGENTS.md also records why poweroff never reached the strip: rc.6 stops networking before it signals Hyprland, so the hyprland.shutdown handler fires with no route. The power menu now switches the strip off before loginctl instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 7547181..4c3ccae 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -227,10 +227,20 @@ by its UDP 6667 broadcast rather than a stored address. The effect is DP 51,
omits: it was read off the strip's status pushes while the app set scenes. LEDs
render pastel accents as white, so saturation is floored at full.
The strip also follows the session: hypr-theme's autostart runs `udt-ledstrip
-on` at login and `off` on Hyprland's `hyprland.shutdown` event, which logout
-and poweroff both raise. `off` cannot wait for a broadcast as the session
+on` at login and `off` on Hyprland's `hyprland.shutdown` event, which covers
+logout. Poweroff and reboot do not reach it in time: rc.6 stops networking
+before it signals Hyprland, so the event fires with no route to the strip.
+rofi-scripts' `udt-powermenu.sh` therefore runs `off` itself before
+`loginctl`. `off` cannot wait for a broadcast as the session
dies, so the last address is cached in `~/.cache/udt/ledstrip.json` and
discovery is only the fallback.
+Suspend does not switch it off: `udt-ledstrip sleep` breathes the accent alone,
+desaturated and at half brightness (DP 51 mode `0x03`, read off the strip the
+same way), and hypridle's `after_sleep_cmd` runs `on` to bring the flow back.
+`sleep` is sent before `loginctl suspend`, by the power menu and by
+hypridle's idle timeout, for the same reason as `off`: NetworkManager drops the
+network on the same sleep signal hypridle's `before_sleep_cmd` answers. That
+`before_sleep_cmd` sends it too, as a best effort for any other suspend path.
**Sublime's, GRUB's and the homepage's accents are replaced, not substituted
into a placeholder.** GRUB and the homepage are generated by udt-palette with