aboutsummaryrefslogtreecommitdiffstats
path: root/bin/udt-accent
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-02 18:36:37 +0200
committerDanilo M. <danix@danix.xyz>2026-10-02 18:36:37 +0200
commitf89e3b7dc5dbad2fce9a62e644c11cb963547349 (patch)
tree7fe8f81cdc66e1a4f6c9cedf9eae5ba8c902288f /bin/udt-accent
parentb29dee9a3b5f77baadb8d788f94b01d4f7535b7f (diff)
downloadunified-desktop-theme-f89e3b7dc5dbad2fce9a62e644c11cb963547349.tar.gz
unified-desktop-theme-f89e3b7dc5dbad2fce9a62e644c11cb963547349.zip
feat(keyboard): light the AK820 Pro in the wallpaper accentHEADmaster
udt-keyboard sets an Ajazz AK820 Pro to its "launch" effect in the current accent through ak820-ctl, and does nothing without it. udt-accent starts it detached on every run; --watch reapplies the accent when the USB cable is plugged in, since the keyboard takes no commands over its dongle or Bluetooth. The firmware ignores a mode change unless the lights go off first and settle, so it sends off, waits three seconds, then the mode. A lock keeps a wallpaper change and a plug-in from interleaving the pairs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bin/udt-accent')
-rwxr-xr-xbin/udt-accent3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/udt-accent b/bin/udt-accent
index 31798cc..b0b59b0 100755
--- a/bin/udt-accent
+++ b/bin/udt-accent
@@ -480,7 +480,8 @@ def main(image):
# an unreachable host would hold the wallpaper change for the scp timeout.
# GRUB's background is a wallpaper snapshot. Detached for the same reason;
# it only rebuilds and notifies, since the copy into /boot needs root.
- for helper in ("udt-homepage", "udt-grub"):
+ # The keyboard takes seconds per colour change, and is often not there.
+ for helper in ("udt-homepage", "udt-grub", "udt-keyboard"):
subprocess.Popen([Path(__file__).resolve().parent / helper],
stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL, start_new_session=True)