aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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"])