X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=xinitrc;h=4e5f7bbefe217598697ae93d1d18bc300b3bea41;hb=73ff664c0b33699029cab0f6c40c10cc78e90a04;hp=201e6369a99fb01f1b79781c6270cd30217cc413;hpb=f08deb1fc626e530287bc140cc6ee9e5c2882d75;p=config%2Fdotfiles.git diff --git a/xinitrc b/xinitrc index 201e636..4e5f7bb 100755 --- a/xinitrc +++ b/xinitrc @@ -37,16 +37,20 @@ fi # 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