From 51c9b070ed3dcddfec84943be08e1c2a03e8307f Mon Sep 17 00:00:00 2001 From: mono-b Date: Sat, 24 Dec 2022 08:48:23 -0300 Subject: sum changes --- waldunst.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 waldunst.sh (limited to 'waldunst.sh') 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" -- cgit v1.2.1