bin/xrdbupdate

15 lines
386 B
Plaintext
Raw Normal View History

#!/bin/sh
2018-07-31 14:20:51 -05:00
printf "[INFO] Loading X resource files\n"
if [ -r ~/.Xresources ]; then
2018-05-17 15:58:15 -05:00
xrdb ~/.Xresources
2018-07-31 14:20:51 -05:00
printf " [INFO] Loading .Xresources\n"
2018-05-17 15:58:15 -05:00
fi
2018-08-24 17:14:33 -05:00
for file in "${XDG_CONFIG_HOME:-$HOME/.config}"/xrdb/*.xresources; do
2018-07-31 14:20:51 -05:00
if ! [ -r "$file" ]; then
printf " [ERROR] Could not read .xresources file $file\n" 1>&2
else
printf " [INFO] Merging in $file\n"
xrdb -merge "$file"
fi
done