diff options
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 |
