diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-21 19:12:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-21 19:12:23 +0200 |
| commit | 6b6ac80c924325f1229bf7f230fd80cde0ce7744 (patch) | |
| tree | 4256b021ff987dc5531572b112a52814bbe3d125 /AGENTS.md | |
| parent | fe32352c14fc838e803bd224d43f251b9fa215da (diff) | |
| download | unified-desktop-theme-6b6ac80c924325f1229bf7f230fd80cde0ce7744.tar.gz unified-desktop-theme-6b6ac80c924325f1229bf7f230fd80cde0ce7744.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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, |
