diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-11-27 13:53:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 13:53:48 +0900 |
| commit | 8eeed24b9579cf4cc76cc67dc4b5c73b2ef34573 (patch) | |
| tree | 2115df3ef73ea54d71ba9ff84364c690b591af44 /config/hypr/scripts/PywalDunst.sh | |
| parent | 4502d47a44dd46306e0803ec0b27a0db48b2819c (diff) | |
| parent | f981d4fbbfb5f853b491a062e6e9017669102115 (diff) | |
Merge pull request #37 from JaKooLit/v2.1.10
V2.1.10
Diffstat (limited to 'config/hypr/scripts/PywalDunst.sh')
| -rwxr-xr-x | config/hypr/scripts/PywalDunst.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/hypr/scripts/PywalDunst.sh b/config/hypr/scripts/PywalDunst.sh new file mode 100755 index 00000000..410c55b8 --- /dev/null +++ b/config/hypr/scripts/PywalDunst.sh @@ -0,0 +1,24 @@ +#!/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=$HOME/.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 -conf $HOME/.config/dunst/dunstrc > /dev/null 2>&1 &
\ No newline at end of file |
