]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: Don't set background on slow machines in university.
authorSimon Ruderich <simon@ruderich.org>
Tue, 17 May 2011 11:31:43 +0000 (13:31 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 17 May 2011 11:31:43 +0000 (13:31 +0200)
xinitrc

diff --git a/xinitrc b/xinitrc
index 5353d0a8ca429c822c3f442f2e071cd36c8f7e65..3429ac1fdf7719607a850bcb884896be637a09a5 100755 (executable)
--- 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.