aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/PywalDunst.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-11-27 12:04:47 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-11-27 12:04:47 +0900
commit9e7b47f1b8dafbfadee3863355b3785384ffe436 (patch)
tree812b7eb42c04f392844d9bc9596ee7db08c083ef /config/hypr/scripts/PywalDunst.sh
parent1727b338712bcffb9400836f2b10f3571b32658c (diff)
Here are changes made
1.) Use pywal for dunst colors. However, seems backgrounds are not changing. Perhaps only on OpenSuse? 2.) Deleted preconfigured style for dunst. to align with #1 changes 3.) Rewrite some scripts to align with PywalDunst. 4.) New script created for Dunst-Pywal called PywalDunst.sh 5.) Random wallpaper auto change is not increased timing to change every 15 mins 6.) Some scripts are re-written
Diffstat (limited to 'config/hypr/scripts/PywalDunst.sh')
-rwxr-xr-xconfig/hypr/scripts/PywalDunst.sh24
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage