#!/bin/bash # get the Window Manager from the user, use default if blank. # TODO: more input checking? # TODO: maybe use wmanager for WM selection? # TODO: move to select echo "enter your prefered WM out of:" echo "awesome (default), fluxbox, openbox, kde, gnome, wmii, stumpwm" read WMinput case "$WMinput" in "") WM="/usr/bin/awesome"; echo "starting awesome"; ;; "fluxbox") WM=startfluxbox; echo "starting Fluxbox"; ;; "openbox") WM=startfluxbox; echo "starting Fluxbox"; ;; "kde") WM=startkde; echo "starting KDE"; ;; "gnome") WM=gnome-session; echo "starting Gnome"; ;; "wmii") WM="wmii"; export needstray="true" echo "starting $WM"; ;; "stumpwm") WM="$WMinput"; echo "starting $WM"; ;; "awesome") WM="/usr/bin/awesome"; echo "starting $WM"; ;; *) WM=error; echo "$WMinput is not a valid choice"; exit 1 ;; esac export WM=$WM exec startx