]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xinitrc: Add missing shebang.
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
old mode 100644 (file)
new mode 100755 (executable)
index 1c586bc..ccb09c3
--- a/xinitrc
+++ b/xinitrc
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 # startx configuration file.
 
 
@@ -7,7 +9,16 @@ xsetroot -solid black
 # Use my X11 key bindings.
 xmodmap ~/.xmodmaprc
 
-# Start stumpwm.
-exec stumpwm
+# Change the background if available.
+if [ -f ~/.background ]; then
+    if [ -x /usr/bin/hsetroot ]; then
+        hsetroot -full ~/.background
+    elif [ -x /usr/bin/feh ]; then
+        feh --bg-scale ~/.background
+    fi
+fi
+
+# Start XMonad.
+xmonad
 
 # vim: ft=sh