From 6eac57b4e14e0adc61e1c04dff037837420711ed Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 17 May 2011 13:31:43 +0200 Subject: [PATCH] xinitrc: Don't set background on slow machines in university. --- xinitrc | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.44.1