From c90c72ed7d5bb5337319a053bf89d73fcb16c604 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 14 Sep 2026 09:06:18 +0200 Subject: 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 Claude-Session: https://claude.ai/code/session_01LvSnbnNgdZS7YAqioCJhpT --- install.sh | 10 ++++++++++ templates/dunstrc.in | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 292f00a..2083292 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/templates/dunstrc.in b/templates/dunstrc.in index f3a096e..192975b 100644 --- a/templates/dunstrc.in +++ b/templates/dunstrc.in @@ -24,7 +24,7 @@ gap_size = 0 separator_color = frame sort = yes - font = Noto Sans 11 + font = Noto Sans 12 line_height = 0 markup = full format = "%a\n%s%p %n\n%b" -- cgit v1.2.3