summaryrefslogtreecommitdiff
path: root/waldunst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'waldunst.sh')
-rwxr-xr-xwaldunst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/waldunst.sh b/waldunst.sh
new file mode 100755
index 0000000..7b116e7
--- /dev/null
+++ b/waldunst.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+bg=$(sed -n 1p $HOME/.cache/wal/colors)
+fg=$(sed -n 15p $HOME/.cache/wal/colors)
+cfg=$HOME/.config/dunst/dunstrc
+
+kill $(pidof dunst)
+sed -i "s/background = \"#[0-9].*\"/background = \"$bg\"/g" "$cfg"
+sed -i "s/foreground = \"#[0-9].*\"/foreground = \"$fg\"/g" "$cfg"