aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-14 09:06:18 +0200
committerDanilo M. <danix@danix.xyz>2026-09-14 09:06:18 +0200
commitc90c72ed7d5bb5337319a053bf89d73fcb16c604 (patch)
treee899dd80539aafdd01fe1a7a9b2c9a6a98ab7cf4
parent3e9706bc6da4d38d9410efa4844103474ebb59e0 (diff)
downloadunified-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
-rwxr-xr-xinstall.sh10
-rw-r--r--templates/dunstrc.in2
2 files changed, 11 insertions, 1 deletions
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 = "<b>%a</b>\n<i>%s</i>%p %n\n%b"