color-mode: use new xrdb -get option

This commit is contained in:
Michele Guerini Rocco 2021-06-22 20:06:29 +02:00
parent c6b1c54542
commit e711811a02
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -10,10 +10,10 @@ pkill dunst
"$XDG_CONFIG_HOME"/bspwm/bspwmrc
# regenerate configs
expand='s/(.*)@(\w+)/echo -n "\1"\\"$(xrdb -query \2)\\"/; /\$/e'
expand='s/(.*)@(\w+)/echo -n "\1"\\"$(xrdb -get \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)" \
xsetroot -fg "$(xrdb -get root.foreground)" \
-bg "$(xrdb -get root.background)" \
-bitmap ~/img/tiles/tile.xbm \