bin/xrdbupdate

16 lines
405 B
Plaintext
Raw Normal View History

#!/bin/sh
2018-08-27 13:39:37 -05:00
name="$(basename $0)"
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-08-27 13:39:37 -05:00
printf "$name: 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
2018-08-27 13:39:37 -05:00
printf "$name: Could not read .xresources file \"$file\"\n" 1>&2
2018-07-31 14:20:51 -05:00
else
2018-08-27 13:39:37 -05:00
printf "$name: Merging in $file\n"
2018-07-31 14:20:51 -05:00
xrdb -merge "$file"
fi
done