bin/xrdbupdate

15 lines
353 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-05-17 15:52:42 -05:00
for file in ~/.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