diff --git a/xrdbupdate b/xrdbupdate index f21859c..27fc646 100755 --- a/xrdbupdate +++ b/xrdbupdate @@ -1,14 +1,15 @@ #!/bin/sh +name="$(basename $0)" printf "[INFO] Loading X resource files\n" if [ -r ~/.Xresources ]; then xrdb ~/.Xresources - printf " [INFO] Loading .Xresources\n" + printf "$name: 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 + printf "$name: Could not read .xresources file \"$file\"\n" 1>&2 else - printf " [INFO] Merging in $file\n" + printf "$name: Merging in $file\n" xrdb -merge "$file" fi done