aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-05 18:49:28 +0200
committerDanilo M. <danix@danix.xyz>2026-10-05 18:49:28 +0200
commita8f0a5f74cf44cb1877154cf71b5c594bc303b05 (patch)
tree35d80506ba6afe5e7bf4647da36c93a829b5fd49 /AGENTS.md
parent9c468ffb40f832ff25f23bd6027b93ae8d40c7bf (diff)
downloadunified-desktop-theme-a8f0a5f74cf44cb1877154cf71b5c594bc303b05.tar.gz
unified-desktop-theme-a8f0a5f74cf44cb1877154cf71b5c594bc303b05.zip
feat(accent): GRUB and homepage follow the wallpaper accent
Both sat on the scheme's fixed accent, on the grounds that nothing at boot and nothing on the dashboard host can read the wallpaper. Neither needs to: both are generated here, and both already carry the wallpaper itself, so a wallpaper change already leaves them stale and raises their root steps. Following the accent adds no step. udt-accent rewrites the accent in the generated files before it starts udt-grub and udt-homepage: the accent= value on theme.txt's '# udt:' line, which grub-theme-udt's build reads for its PNG slices, and a single --udt-accent line in homepage's custom.css that every accent rule now reads. Sublime's rewrite moves onto the same helper, which also keeps the file's mode rather than leaving it 0600. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/AGENTS.md b/AGENTS.md
index afb685a..e874127 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -199,14 +199,16 @@ 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 seven things: `~/.cache/udt/udt-accent.rasi` (rofi),
+It writes nine 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 Sublime's installed `Packages/User/udt.sublime-color-scheme`.
+substitution in three 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).
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
@@ -215,7 +217,11 @@ 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
+**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
+the scheme's accent, then rewritten in place, before `udt-grub` and
+`udt-homepage` start. Both already refresh on every wallpaper change for the
+wallpaper itself, so following the accent adds no root step. Sublime's
colour scheme cannot cascade, so the accent has to live in the one generated
file rather than arriving as a second one, and `install.sh` copies that file
out of the repo. `write_sublime` therefore rewrites the `"accent"` variable
@@ -266,7 +272,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, Firefox and the AK820 Pro keyboard do; conky, Qt, GTK, waybar, hyprlock's panel palette
+colour scheme, Firefox, GRUB, the homepage 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,