]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xmonad.hs: Move custom keys to own variable.
[config/dotfiles.git] / xinitrc
diff --git a/xinitrc b/xinitrc
old mode 100644 (file)
new mode 100755 (executable)
index 0899431..2a6866b
--- a/xinitrc
+++ b/xinitrc
@@ -4,5 +4,19 @@
 # Use a black background for the root window.
 xsetroot -solid black
 
-# Start stumpwm.
-exec stumpwm
+# Use my X11 key bindings.
+xmodmap ~/.xmodmaprc
+
+# 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