]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: Use herbstluftwm as window manager.
authorSimon Ruderich <simon@ruderich.org>
Sun, 12 Jan 2014 20:12:53 +0000 (21:12 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 12 Jan 2014 20:12:53 +0000 (21:12 +0100)
Fallback to xmonad and stumpwm, just in case.

xinitrc

diff --git a/xinitrc b/xinitrc
index b286dbc9615534d7489f780d006ceac1fd53807f..a36ab94378cb4bfd559ae4b950d993d1cbf56bb8 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -149,7 +149,16 @@ fi
 (urxvt || rxvt || xterm) &
 
 # Start window manager.
-xmonad
+if installed herbstluftwm; then
+    herbstluftwm --locked
+elif installed xmonad; then
+    xmonad
+elif installed stumpwm; then
+    stumpwm
+else
+    error 'no window manager found (sleeping for 3600 seconds)'
+    sleep 3600
+fi
 
 
 # Cleanup.