From f89e3b7dc5dbad2fce9a62e644c11cb963547349 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 2 Oct 2026 18:36:37 +0200 Subject: feat(keyboard): light the AK820 Pro in the wallpaper accent 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 --- AGENTS.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 329a20e..55bdf2d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -208,7 +208,12 @@ It writes seven things: `~/.cache/udt/udt-accent.rasi` (rofi), read through a root-made `theme.conf.user` symlink), and the accent substitution in Sublime's installed `Packages/User/udt.sublime-color-scheme`. It then starts `udt-homepage` and `udt-grub` detached, for the two outputs -that need a root step on another filesystem or host. +that need a root step on another filesystem or host, and `udt-keyboard`, which +lights an Ajazz AK820 Pro in the accent through `ak820-ctl` (a no-op without +it). The keyboard only listens over its USB cable, so `udt-keyboard --watch`, +started from hypr-theme's autostart, reapplies the accent on every plug-in. Its +firmware ignores a mode change unless the lights go off first and settle for a +few seconds, hence the off, sleep 3, mode sequence; one second was not enough. **Sublime's accent is replaced, not substituted into a placeholder.** Its colour scheme cannot cascade, so the accent has to live in the one generated @@ -252,7 +257,7 @@ those two and pywal's wallpaper-derived colours come back. Not everything tracks the wallpaper. rofi, quickshell, Hyprland borders, hyprlock's border (through `~/.cache/udt/hyprlock-border.conf`), Sublime's -colour scheme and Firefox do; conky, Qt, GTK, waybar, hyprlock's panel palette +colour scheme, Firefox and the AK820 Pro keyboard do; conky, Qt, GTK, waybar, hyprlock's panel palette (from `templates/hyprlock/hyprlock-palette.conf`) and Sublime's UI chrome sit on the scheme's accent, lavender by default, which is also the fallback when a wallpaper is too grey to snap. Qt and GTK apps only reread a theme on restart, -- cgit v1.2.3