diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-11-28 01:38:38 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-11-28 01:38:38 +0900 |
| commit | 6adf09409e23931689be999c91a2cdeb96c571f6 (patch) | |
| tree | d5a1dc1f6343df1a029e1f6c4068b85590f7ed81 /config/hypr/scripts/PywalDunst.sh | |
| parent | abdc29f5f38edb33443c1173924df94986032e46 (diff) | |
updates
Diffstat (limited to 'config/hypr/scripts/PywalDunst.sh')
| -rwxr-xr-x | config/hypr/scripts/PywalDunst.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/hypr/scripts/PywalDunst.sh b/config/hypr/scripts/PywalDunst.sh new file mode 100755 index 00000000..2a66aec6 --- /dev/null +++ b/config/hypr/scripts/PywalDunst.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# -lf/nf/cf color +# Defines the foreground color for low, normal and critical notifications respectively. +# +# -lb/nb/cb color +# Defines the background color for low, normal and critical notifications respectively. +# +# -lfr/nfr/cfr color +# Defines the frame color for low, normal and critical notifications respectively. + +[ -f "$HOME/.cache/wal/colors.sh" ] && . "$HOME/.cache/wal/colors.sh" + +pidof dunst && pkill dunst + +DUNST_FILE=~/.config/dunst/dunstrc + +# update dunst based on pywal colors. +#sed -i '/background = /s/.*/ background = "$color0"/' $DUNST_FILE +#sed -i '/foreground = /s/.*/ foreground = "'$color7'"/' $DUNST_FILE +sed -i '/frame_color = /s/.*/ frame_color = "'$color2'"/' $DUNST_FILE + +dunst -config ~/.config/dunst/dunstrc > /dev/null 2>&1 &
\ No newline at end of file |
