if [ x`os` != xdarwin ]; then
link xinitrc ~/.xinitrc
fi
+ if [ -f xinitrc.local ]; then
+ link xinitrc.local ~/.xinitrc.local
+ fi
link xmodmaprc ~/.xmodmaprc
link Xdefaults ~/.Xdefaults
link XCompose ~/.XCompose
# Use my X11 key bindings.
xmodmap "$HOME/.xmodmaprc"
+# Default to use a background image. Can be disabled in .xinitrc.local.
+set_background=yes
+
+# Load settings for the local system.
+if test -f "$HOME/.xinitrc.local"; then
+ . "$HOME/.xinitrc.local"
+fi
+
# Change the background if available.
-if test -f "$HOME/.background"; then
- # But not on slow machines in the university.
- HOSTNAME=`hostname`
- if test "x`echo $HOSTNAME | grep faui0sr`" = x; then
- if test -x /usr/bin/hsetroot; then
- hsetroot -full "$HOME/.background"
- elif test -x /usr/bin/feh; then
- feh --bg-scale "$HOME/.background"
- fi
+if test -f "$HOME/.background" && test -n $set_background; then
+ if test -x /usr/bin/hsetroot; then
+ hsetroot -full "$HOME/.background"
+ elif test -x /usr/bin/feh; then
+ feh --bg-scale "$HOME/.background"
fi
fi