From 6b6ac80c924325f1229bf7f230fd80cde0ce7744 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 21 Oct 2026 19:12:23 +0200 Subject: feat(accent): conky headings and icons follow the wallpaper udt-accent now rewrites two lines of conky-theme-udt's conky.conf: color1 (heading) takes the accent, which every scheme already uses for heading, and color5 (highlight: title icons, bars) takes the accent's next hue on the wheel, the border's leading neighbour, so the two stay apart. Left on the scheme's own hue, highlight kept the dashboard pink whatever the wallpaper. The rewrite is in place, not atomic: conky watches the file's inode, and a rename would end the watch silently. The selftest checks both lines twice over and that the inode survives. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 9576bc6..068587e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -199,16 +199,22 @@ One colour moves: `@accent`. `bin/udt-accent` reads the current wallpaper, extracts its signature colour, and snaps it to the nearest of ten Catppuccin accents by perceptual hue in CIELAB. `wallp` calls it on every wallpaper change. -It writes nine things: `~/.cache/udt/udt-accent.rasi` (rofi), +It writes ten things: `~/.cache/udt/udt-accent.rasi` (rofi), `~/.cache/udt/udt-border.lua` (Hyprland), `~/.cache/udt/hyprlock-border.conf` (hyprlock, the same three hues as the window border, as a hyprlang gradient), `~/.cache/wal/colors.json` (Firefox, via pywalfox), `~/.cache/udt/udt-palette.qml` (quickshell), `~/.local/share/udt/sddm-theme.conf` (the SDDM greeter, palette plus wallpaper, read through a root-made `theme.conf.user` symlink), and the accent -substitution in three generated files: Sublime's installed +substitution in four generated files: Sublime's installed `Packages/User/udt.sublime-color-scheme`, grub-theme-udt's `theme.txt` (its -`# udt:` line) and `templates/homepage/custom.css` (its `--udt-accent` line). +`# udt:` line), `templates/homepage/custom.css` (its `--udt-accent` line) and +conky-theme-udt's `conky.conf` (its `color1` and `color5` lines, the `heading` +role, which is the scheme accent in every scheme, and `highlight`, the icons +and bars, which takes the accent's next hue on the wheel, the border's leading +neighbour, so it stays apart from the headings). conky watches that file's inode with +inotify and reloads on a write, so it is rewritten in place: an atomic rename +would end the watch silently. It then starts `udt-homepage` and `udt-grub` detached, for the two outputs 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 @@ -328,7 +334,7 @@ profile, and the new tab stays blank. Not everything tracks the wallpaper. rofi, quickshell, Hyprland borders, hyprlock's border (through `~/.cache/udt/hyprlock-border.conf`), Sublime's -colour scheme, Firefox, GRUB, the homepage, the AK820 Pro keyboard, the LED strip and the TRADFRI bulbs do; conky, Qt, GTK, waybar, hyprlock's panel palette +colour scheme, Firefox, GRUB, the homepage, conky's headings and icons, the AK820 Pro keyboard, the LED strip and the TRADFRI bulbs do; the rest of 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