#!/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"