diff options
| -rwxr-xr-x | install.sh | 10 | ||||
| -rw-r--r-- | templates/dunstrc.in | 2 |
2 files changed, 11 insertions, 1 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 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" |
