diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-18 13:50:12 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-18 13:50:12 +0200 |
| commit | e00d8be5e8aff7a6588bd3f932a6706574a07ee6 (patch) | |
| tree | caa398a62e5de047e889e4956af98964eee91be8 /AGENTS.md | |
| parent | 59ea46306cb11fe27e10ba827501ec21e52f7de3 (diff) | |
| download | unified-desktop-theme-e00d8be5e8aff7a6588bd3f932a6706574a07ee6.tar.gz unified-desktop-theme-e00d8be5e8aff7a6588bd3f932a6706574a07ee6.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |
