]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xmonad.hs: meta-f switches to last active workspace.
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
old mode 100644 (file)
new mode 100755 (executable)
index 0d9e6cc..2a6866b
--- a/xinitrc
+++ b/xinitrc
@@ -7,8 +7,13 @@ xsetroot -solid black
 # Use my X11 key bindings.
 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.