2020-07-06 11:57:43 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-07-25 17:38:45 +02:00
|
|
|
xrdb -override "$XDG_CONFIG_HOME/x/$1"
|
2020-07-06 11:57:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# send color mode signal
|
2020-07-06 11:57:43 +02:00
|
|
|
pkill -USR1 'qutebrowser|urxvt'
|
2020-11-18 00:48:14 +01:00
|
|
|
pkill dunst
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# update bspwm colors
|
|
|
|
"$XDG_CONFIG_HOME"/bspwm/bspwmrc
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
# 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"
|
2020-07-08 11:53:43 +02:00
|
|
|
|
2020-10-01 14:29:27 +02:00
|
|
|
xsetroot -fg "$(xrdb -query root.foreground)" \
|
|
|
|
-bg "$(xrdb -query root.background)" \
|
|
|
|
-bitmap ~/img/tiles/tile.xbm \
|