summaryrefslogtreecommitdiff
path: root/waldunst.sh
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 08:48:23 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-24 08:48:23 -0300
commit51c9b070ed3dcddfec84943be08e1c2a03e8307f (patch)
tree0b3c97a9ea41b012db2a252fcfde7808b0353ac4 /waldunst.sh
parentabd2b4e8990c054013057401cb67a985066cb41c (diff)
sum changesHEADmaster
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"