From e00d8be5e8aff7a6588bd3f932a6706574a07ee6 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 13:50:12 +0200 Subject: feat(ledstrip): switch the strip on and off with the session `udt-ledstrip on|off` switches the strip, replaying the gradient when it comes on; with no argument it still only replays the gradient, so a wallpaper change leaves a strip the user switched off alone. The last address is cached in ~/.cache/udt/ledstrip.json, because `off` runs as the session ends and cannot wait up to 20 s for a broadcast. From the cache a switch takes under half a second; discovery is the fallback when the cached address fails. hypr-theme calls it at login, on Hyprland's shutdown event, and around suspend from hypridle. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 52c4754..7547181 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -226,6 +226,11 @@ by its UDP 6667 broadcast rather than a stored address. The effect is DP 51, `dreamlight_scene_mode`, whose layout Tuya does not document and the cloud spec 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 +dies, so the last address is cached in `~/.cache/udt/ledstrip.json` and +discovery is only the fallback. **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 -- cgit v1.2.3