#!/bin/sh xrdb -override "$XDG_CONFIG_HOME/x/$1" # send color mode signal pkill -USR1 'qutebrowser|urxvt' pkill dunst # update bspwm colors "$XDG_CONFIG_HOME"/bspwm/bspwmrc # regenerate configs expand='s/(.*)@(\w+)/echo -n "\1"\\"$(xrdb -query \2)\\"/; /\$/e' sed -r "$expand" "$XDG_CONFIG_HOME/zathura/zathurarc.in" > "$XDG_CONFIG_HOME/zathura/zathurarc" sed -r "$expand" "$XDG_CONFIG_HOME/dunst/dunstrc.in" > "$XDG_CONFIG_HOME/dunst/dunstrc" xsetroot -fg "$(xrdb -query root.foreground)" \ -bg "$(xrdb -query root.background)" \ -bitmap ~/img/tiles/tile.xbm \