diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-16 08:37:31 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-16 08:37:31 +0200 |
| commit | 5c6b30029671f946a617a376450037a925c30eb6 (patch) | |
| tree | 96ae863552202ee40e20e13586e9ea84fe59c2d6 | |
| parent | d320a7ad71cf2426f54fb6b9cbc33bf86149ff56 (diff) | |
| download | quickshell-5c6b30029671f946a617a376450037a925c30eb6.tar.gz quickshell-5c6b30029671f946a617a376450037a925c30eb6.zip | |
refactor(theme): read the palette from ~/.cache/udt
unified-desktop-theme moved its generated files out of ~/.cache/wal, which
pywal used to own and nothing writes any more. The palette udt-accent
generates is now at ~/.cache/udt/udt-palette.qml.
shared/Theme.qml is the only code change; every component reaches it through
a symlink. The module READMEs cite the path, so they move with it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
| -rw-r--r-- | AGENTS.md | 2 | ||||
| -rw-r--r-- | appearance/README.md | 2 | ||||
| -rw-r--r-- | desktop/modules/mail/README.md | 2 | ||||
| -rw-r--r-- | desktop/modules/sound/README.md | 2 | ||||
| -rw-r--r-- | desktop/modules/vm/README.md | 2 | ||||
| -rw-r--r-- | shared/Theme.qml | 4 | ||||
| -rw-r--r-- | window-switcher/README.md | 2 |
7 files changed, 8 insertions, 8 deletions
@@ -249,7 +249,7 @@ changing that component. The ones that generalise: No component defines a palette. `udt-accent`, in the `unified-desktop-theme` repo alongside this one, writes -`~/.cache/wal/udt-palette.qml` from its `palette.rasi`, carrying the whole +`~/.cache/udt/udt-palette.qml` from its `palette.rasi`, carrying the whole Catppuccin Macchiato palette plus the accent snapped from the current wallpaper. `Theme.qml` parses and watches that file, so a palette edit recolours a running shell with no restart. diff --git a/appearance/README.md b/appearance/README.md index aba231a..2a39bd7 100644 --- a/appearance/README.md +++ b/appearance/README.md @@ -86,7 +86,7 @@ stopped after the first until it set `running = false` immediately before. ## Theme and blur `Theme.qml` is the shared one: the palette comes from -`~/.cache/wal/udt-palette.qml` and is watched. Frosting is Hyprland's, matched +`~/.cache/udt/udt-palette.qml` and is watched. Frosting is Hyprland's, matched on this window's namespace: hl.layer_rule({ diff --git a/desktop/modules/mail/README.md b/desktop/modules/mail/README.md index 92e4dab..3b9f89e 100644 --- a/desktop/modules/mail/README.md +++ b/desktop/modules/mail/README.md @@ -245,7 +245,7 @@ is not worth a timer. ## Theme and blur `Theme.qml` is a symlink to `shared/Theme.qml`: the palette comes from -`~/.cache/wal/udt-palette.qml` and is watched. Sharing one file is what keeps +`~/.cache/udt/udt-palette.qml` and is watched. Sharing one file is what keeps the palette from drifting into per-component copies. Frosting is Hyprland's, matched on this window's namespace: diff --git a/desktop/modules/sound/README.md b/desktop/modules/sound/README.md index dd42de2..72db235 100644 --- a/desktop/modules/sound/README.md +++ b/desktop/modules/sound/README.md @@ -122,7 +122,7 @@ it just renders flat translucent instead of frosted. ## Theme `Theme.qml` holds no palette of its own beyond a fallback. The colours come -from `~/.cache/wal/udt-palette.qml`, which `udt-accent` generates on every +from `~/.cache/udt/udt-palette.qml`, which `udt-accent` generates on every wallpaper change from unified-desktop-theme's `palette.rasi`, carrying the whole Macchiato palette plus the accent snapped from the wallpaper. diff --git a/desktop/modules/vm/README.md b/desktop/modules/vm/README.md index fbb7bde..ae656e3 100644 --- a/desktop/modules/vm/README.md +++ b/desktop/modules/vm/README.md @@ -120,7 +120,7 @@ nowhere to go: the process output is not attached to a terminal. ## Theme `Theme.qml` carries only fallbacks. The palette comes from -`~/.cache/wal/udt-palette.qml`, generated by `udt-accent` from +`~/.cache/udt/udt-palette.qml`, generated by `udt-accent` from unified-desktop-theme's `palette.rasi`, and is watched: editing the palette there recolours a running drawer without restarting it. State dots use the green, yellow and red from that palette. diff --git a/shared/Theme.qml b/shared/Theme.qml index 6f172e7..51ed5cf 100644 --- a/shared/Theme.qml +++ b/shared/Theme.qml @@ -16,7 +16,7 @@ import Quickshell.Io import QtQuick // The palette comes from unified-desktop-theme: udt-accent writes -// ~/.cache/wal/udt-palette.qml on every wallpaper change, holding the +// ~/.cache/udt/udt-palette.qml on every wallpaper change, holding the // Macchiato colours from its palette.rasi plus the accent snapped from the // wallpaper. Watching that file is what makes a theme edit show up here. // @@ -49,7 +49,7 @@ Singleton { // without a qmldir next to it, and the cache directory has no reason to // carry one. The format is fixed and machine-written, so a regex is enough. FileView { - path: `${Quickshell.env("HOME")}/.cache/wal/udt-palette.qml` + path: `${Quickshell.env("HOME")}/.cache/udt/udt-palette.qml` watchChanges: true onFileChanged: reload() onLoaded: { diff --git a/window-switcher/README.md b/window-switcher/README.md index 3cfb28b..a9ddbd4 100644 --- a/window-switcher/README.md +++ b/window-switcher/README.md @@ -134,7 +134,7 @@ preview can otherwise land on a same-coloured region and vanish. ## Theme and blur `Theme.qml` is a symlink to `shared/Theme.qml`: the palette comes from -`~/.cache/wal/udt-palette.qml` and is watched. +`~/.cache/udt/udt-palette.qml` and is watched. Frosting is Hyprland's, matched on this window's namespace: |
