aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/PywalDunst.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-11-28 12:32:38 +0900
committerGitHub <noreply@github.com>2023-11-28 12:32:38 +0900
commit58b479764ff992e7f988c850670066228ff07705 (patch)
tree1d306c9b320690c4a9eea61765d54b34388f3ab6 /config/hypr/scripts/PywalDunst.sh
parentf94e75d6936f57961c132b2908eb6425ae02f1dc (diff)
parent732c9585631a93fb2f319ab76cec28ce48dd5985 (diff)
Merge pull request #39 from JaKooLit/v2.1.11
V2.1.11
Diffstat (limited to 'config/hypr/scripts/PywalDunst.sh')
-rwxr-xr-xconfig/hypr/scripts/PywalDunst.sh23
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage