#!/bin/bash # A script to update the colors in config files of stubborn programs for easy ricing. # By David Penkowoj, 2022-03-18 cache="$HOME/.cache/wal" config="$HOME/.config" relevant=("dunst/dunstrc" "zathura/zathurarc" "flameshot/flameshot.ini") xrdb -merge "$HOME/.cache/wal/colors.Xresources" xrdb -merge "$HOME/.Xresources" for file in ${relevant[@]}; do cp "$cache/$(basename $file)" "$config/$file" done killall dunst