diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-14 09:06:18 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-14 09:06:18 +0200 |
| commit | c90c72ed7d5bb5337319a053bf89d73fcb16c604 (patch) | |
| tree | e899dd80539aafdd01fe1a7a9b2c9a6a98ab7cf4 /install.sh | |
| parent | 3e9706bc6da4d38d9410efa4844103474ebb59e0 (diff) | |
| download | unified-desktop-theme-c90c72ed7d5bb5337319a053bf89d73fcb16c604.tar.gz unified-desktop-theme-c90c72ed7d5bb5337319a053bf89d73fcb16c604.zip | |
fix(dunst): make the repo the real source of the dunst config
templates/dunstrc was generated and then went nowhere. dunst reads
~/.cache/wal/dunstrc, which pywal renders from its own template
directory, and install.sh never wrote to either. The generated config
was therefore dead, and the live one was a hand-maintained copy under
~/.config/wal/templates that this repo did not own, contradicting what
AGENTS.md already claimed about dunst being a consumer.
install.sh now copies the generated config into both places: the pywal
template, so a later `wal` run keeps it, and the cache file, so the
install reaches dunst immediately. Both retain @ACCENT@, which
udt-accent substitutes in the step just below.
Also bump the notification font from Noto Sans 11 to 12 for
readability. Width stays at 300, so longer bodies wrap sooner rather
than overflowing.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LvSnbnNgdZS7YAqioCJhpT
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -100,6 +100,16 @@ pgrep -x waybar >/dev/null 2>&1 && killall -SIGUSR2 waybar 2>/dev/null && reload pgrep -x kitty >/dev/null 2>&1 && pkill -USR1 -x kitty 2>/dev/null && reloaded="$reloaded kitty" command -v hyprctl >/dev/null 2>&1 && hyprctl reload >/dev/null 2>&1 && reloaded="$reloaded hyprland" +# dunst reads ~/.cache/wal/dunstrc, which pywal renders from its own template +# dir. Install the generated config into both: the template so a later `wal` +# run keeps it, and the cache file so this install reaches dunst now. Both +# still carry @ACCENT@, which udt-accent substitutes just below. +if [ -f templates/dunstrc ]; then + mkdir -p "$HOME/.config/wal/templates" + cp templates/dunstrc "$HOME/.config/wal/templates/dunstrc" + cp templates/dunstrc "$HOME/.cache/wal/dunstrc" +fi + # udt-accent regenerates the accent and restarts dunst itself. It needs a # wallpaper to read; without one the accent keeps its current value. if command -v udt-accent >/dev/null 2>&1 && [ -e "$HOME/.cache/wal/wpaper" ]; then |
