Move to simpler, fluxbox-only .xinirc.
authorW. Trevor King <wking@drexel.edu>
Mon, 28 Nov 2011 21:28:22 +0000 (16:28 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 28 Nov 2011 21:29:28 +0000 (16:29 -0500)
src/.xinitrc

index 751a5025caa9563b0bfb63dbd8e361dfd734493d..9e5775a56932c095db7325d9a2583f11974b4e17 100644 (file)
@@ -1,57 +1,20 @@
-#!/bin/bash
-# .xinitrc startup file for X
+#!/bin/sh
+#
+# .xinitrc, a startup file for X
 
-#WM="gnome"
-#WM="twm"
-#WM="fluxbox"
-WM="Find installed"
-
-# Set up keybindings
-xmodmap .Xinitrc
-
-# xrdb -load $HOME/.Xresources
-
-if [ "$WM" == "Find installed" ]
-then
-    for M in fluxbox gnome-session twm
-    do
-       PATH=`which $M`
-       if [ -n "$PATH" ]
-       then
-           if [ "$M" == "fluxbox" ] || [ "$M" == "twm" ; then
-               WM="$M"
-           elif [ "$M" == "gnome-session" ]
-               WM="gnome"
-           else
-               echo "No known windows manager installed"
-               exit
-           fi
-       fi
-    done
+if [ -n $(which conky) ]; then
+    conky &
 fi
 
-if [ "$WM" == "twm" ] # tabbed windows manager.  Very simple.
-then
- # starts a clock, several terminals, and leaves the window manager running 
- # as the last application.   Assuming that the window manager has been 
- # configured properly, the user then chooses the Exit menu item to 
- # shut down X.
- xsetroot -solid darkgray &
- xclock -g 50x50-0+0 -bw 0 &
- xload -g 200x50-50+0 -bw 0 -bg black -fg white &
- # alias xterm='xterm -bg black -fg white'
- xterm -bg black -fg white -g 80x39+0+0 &
- xterm -bg black -fg white -g 80x35+0-0 &
- xterm -bg black -fg white -g 80x76-0+0 &
- twm
-elif [ "$WM" == "gnome" ]
- then
- # start dbus session for gnome power manager
- eval `dbus-launch --auto-syntax`
- xterm -bg black -fg white -g 80x39+0+0 &
- gnome-session
-elif [ "$WM" == "fluxbox" ]
- then
- xterm -bg black -fg white -g 80x39+0+0 &
- fluxbox
+# Setup ACPI on my ASUS EEPC
+if [ -e /usr/bin/asus_acpid ]; then
+    ASUS_ACPID=$(ps -u $(whoami) | grep asus_acpid)
+    if [ "$ASUS_ACPID" == "" ]; then
+        /usr/bin/asus_acpid --logfile /tmp/asus_acpid.log &
+    fi
 fi
+
+# Set up keybindings
+xmodmap ~/.Xmodmap
+
+exec startfluxbox