diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-11 17:20:50 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-11 17:20:50 +0200 |
| commit | 7b55910a786c7652ac80a576399ebd9f81a8ac72 (patch) | |
| tree | 4adaedb0f0ac5003ecc0e19093a2cb5871b18deb /rofi/udt | |
| parent | c7cb9dad4e782ee0ff99773c3607ec3b7792c723 (diff) | |
| download | unified-desktop-theme-7b55910a786c7652ac80a576399ebd9f81a8ac72.tar.gz unified-desktop-theme-7b55910a786c7652ac80a576399ebd9f81a8ac72.zip | |
feat(palette): generate every themed config from one scheme
Colours were written down five times: rofi's palette.rasi, the waybar theme,
the kitty theme, the conky and dunst templates, and a MACCHIATO dict inside
udt-accent. Changing scheme meant finding all five, and they had already
drifted: the active waybar theme was Macchiato while theme.css next to it was
Mocha, and nothing imported the latter.
Now a scheme is two files. palette/<scheme>.conf holds the colours under the
scheme's own names, and palette/roles-<scheme>.conf says what each is for.
palette/roles.conf is one `scheme =` line selecting the pair. bin/udt-palette
renders that into each consumer's syntax and install.sh runs it first.
The role map is per-scheme rather than shared because the palettes are
genuinely different shapes: Nord has no `base`, Dracula no `surface0`, and
forcing Catppuccin's names onto them would have meant either renaming their
colours or inventing values. A role names a palette colour with two optional
modifiers, `name/75` for alpha and `name*50` for brightness. The second exists
because GTK's shade() has no palette name to point at.
Ships macchiato, tokyo-night, nord and dracula. --selftest resolves every role
in every scheme and asserts they define the same set, so a scheme that cannot
satisfy a consumer fails at install rather than when someone switches to it.
Verified against the live configs: all 46 waybar colours resolve identically to
the previously active theme including its alpha() and shade() derivations, the
kitty theme is colour-for-colour identical, and the rofi palette has the same
26 values. Generated files are gitignored; switching scheme and switching back
reproduces the originals.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015gbjA2bmswN8jyPDKzrvqe
Diffstat (limited to 'rofi/udt')
| -rw-r--r-- | rofi/udt/palette.rasi | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/rofi/udt/palette.rasi b/rofi/udt/palette.rasi deleted file mode 100644 index 4a95fea..0000000 --- a/rofi/udt/palette.rasi +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Catppuccin Macchiato palette for rofi. - * Copyright (C) 2026 Danilo M. <danix@danix.xyz> - * Licensed under the GNU General Public License v2 only. - * - * Source: https://github.com/catppuccin/palette - * Structural colors only. The accent lives in accent.rasi and is generated. - */ - -* { - base: #24273aff; - mantle: #1e2030ff; - crust: #181926ff; - - text: #cad3f5ff; - subtext1: #b8c0e0ff; - subtext0: #a5adcbff; - - overlay2: #939ab7ff; - overlay1: #8087a2ff; - overlay0: #6e738dff; - - surface2: #5b6078ff; - surface1: #494d64ff; - surface0: #363a4fff; - - rosewater: #f4dbd6ff; - flamingo: #f0c6c6ff; - pink: #f5bde6ff; - mauve: #c6a0f6ff; - red: #ed8796ff; - maroon: #ee99a0ff; - peach: #f5a97fff; - yellow: #eed49fff; - green: #a6da95ff; - teal: #8bd5caff; - sky: #91d7e3ff; - sapphire: #7dc4e4ff; - blue: #8aadf4ff; - lavender: #b7bdf8ff; -} |
