bin/xrdbupdate

15 lines
386 B
Bash
Executable File

#!/bin/sh
printf "[INFO] Loading X resource files\n"
if [ -r ~/.Xresources ]; then
xrdb ~/.Xresources
printf " [INFO] Loading .Xresources\n"
fi
for file in "${XDG_CONFIG_HOME:-$HOME/.config}"/xrdb/*.xresources; do
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