aboutsummaryrefslogtreecommitdiffstats
path: root/bin/udt-accent
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 12:29:37 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 12:29:37 +0200
commit5b133dbd86aaf54b0c728128f304c8dd8ebea9d1 (patch)
tree633285fd24965339a2794ab67afdc3f6447adad1 /bin/udt-accent
parent261a623de6e214a2f7f143c3ab72a5dd4a117f5c (diff)
downloadunified-desktop-theme-5b133dbd86aaf54b0c728128f304c8dd8ebea9d1.tar.gz
unified-desktop-theme-5b133dbd86aaf54b0c728128f304c8dd8ebea9d1.zip
docs: Firefox and the terminal follow the scheme; stock waybar is gone
udt-accent's docstrings and AGENTS.md still said colors.json was a fixed Macchiato palette. It has been built from udt_colors.PALETTE, which udt-palette generates per scheme, since schemes became switchable; the live file carries candy-night's colours. The terminal likewise follows the scheme, only never the wallpaper. The stock ~/.config/waybar/ has been deleted, so the notes explaining why install.sh leaves it alone now just record that it is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bin/udt-accent')
-rwxr-xr-xbin/udt-accent9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/udt-accent b/bin/udt-accent
index 1027fab..31798cc 100755
--- a/bin/udt-accent
+++ b/bin/udt-accent
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0-only
-# udt-accent: pick a Catppuccin Macchiato accent matching a wallpaper.
+# udt-accent: pick the scheme accent matching a wallpaper.
# Copyright (C) 2026 Danilo M. <danix@danix.xyz>
# Licensed under the GNU General Public License v2 only.
-"""Extract a wallpaper's signature color and snap it to a Macchiato accent.
+"""Extract a wallpaper's signature color and snap it to one of the scheme's accents.
Usage: udt-accent <wallpaper-path>
udt-accent --selftest
@@ -300,12 +300,13 @@ def write_qml(name):
def write_colors_json(name, image):
- """Rewrite colors.json as Macchiato with the accent in the highlight slots.
+ """Rewrite colors.json as the scheme's palette with the accent in the highlight slots.
pywalfox reads this file and nothing else, so this is how Firefox tracks the
wallpaper. pywal wrote the file moments earlier with wallpaper-derived ANSI
colours; this replaces them wholesale, which is the point: the terminal
- palette stays fixed Macchiato while only the accent moves.
+ palette stays the scheme's (udt_colors.PALETTE, which udt-palette
+ generates) while only the accent moves.
"""
hexval = ACCENTS[name]
colors = list(PALETTE["colors"])