]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xinitrc: Add missing shebang.
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
index 6a9025463be38986c376bbbf6286dd8c1cdfba6c..ccb09c38fd9d897c193cbaa53e5689149adf4318 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 # startx configuration file.
 
 
@@ -9,7 +11,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.