From: Simon Ruderich Date: Tue, 17 May 2011 11:31:43 +0000 (+0200) Subject: xinitrc: Don't set background on slow machines in university. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6eac57b4e14e0adc61e1c04dff037837420711ed;p=config%2Fdotfiles.git xinitrc: Don't set background on slow machines in university. --- diff --git a/xinitrc b/xinitrc index 5353d0a..3429ac1 100755 --- a/xinitrc +++ b/xinitrc @@ -16,11 +16,15 @@ xmodmap ~/.xmodmaprc # Change the background if available. if [ -f ~/.background ]; then + # But not on slow machines in the university. + HOSTNAME=`hostname` + if [ "x`echo $HOSTNAME | grep faui0sr`" = x ]; then if [ -x /usr/bin/hsetroot ]; then hsetroot -full ~/.background elif [ -x /usr/bin/feh ]; then feh --bg-scale ~/.background fi + fi fi # Start XMonad.