]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: Also use feh to set background if available.
authorSimon Ruderich <simon@ruderich.org>
Wed, 12 May 2010 12:26:54 +0000 (14:26 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 12 May 2010 12:28:20 +0000 (14:28 +0200)
xinitrc

diff --git a/xinitrc b/xinitrc
index 6a9025463be38986c376bbbf6286dd8c1cdfba6c..2a6866b86e812dc5383efbb755a3ae216f031015 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -9,7 +9,11 @@ xmodmap ~/.xmodmaprc
 
 # Change the background if available.
 if [ -f ~/.background ]; then
-    hsetroot -full ~/.background
+    if [ -x /usr/bin/hsetroot ]; then
+        hsetroot -full ~/.background
+    elif [ -x /usr/bin/feh ]; then
+        feh --bg-scale ~/.background
+    fi
 fi
 
 # Start XMonad.