#!/bin/sh #Greetings Fly To animeloe from #linuxhelp -irc.linux.org- # And All The pCfREAK Members Enjoy... add() { printf "\tHere You CAn add Your Own Desktop Managers\n" echo -n "Manager Name:" read blaaa } want() { echo -n "Do You Want To Add Your Own GUI Managers:" read asn1 if [ "$ans1" -eq no ] || [ "$ans1" -eq No ]; then main elif [ "$ans1 -eq yes ] || [ "$ans1" -eq Yes ]; then add else printf "/t/t/t Incorrect Answer Try Again/a" want fi } blabla() { want clear printf "\t\t\tXDesktop Chooser by hipo\n\a\a" y=`echo 'File Does Not Exists'` } textmenu() { printf "\t\t\t<=#####################=>\n" echo -e '1.Kde' echo '2.gnome' echo '3.xinit' echo '4.wmaker' echo '5.icewm' echo '<=------=>' echo $blaaa } readchoice_test_run() { printf "Enter Choice:" read choice if [ "$choice" -eq 1 ]; then if test -e /usr/bin/kde then exec xinit `which kde` -display :0 --:0 & else y=`echo 'File Does Not Exists'` echo $y fi elif [ "$choice" -eq 2 ]; then if test -e /usr/bin/gnome-session then exec xinit `which gnome-session` -display :0 --:0 & else echo $y fi elif [ "$choice" -eq 3 ]; then if test -e /usr/X11R6/bin/xinit then exec /usr/X11R6/bin/xinit & else echo $y fi elif [ "$choice" -eq 4 ]; then if test -e /usr/X11R6/bin/wmaker then exec xinit `which wmaker` -display :0 -- :0 & else echo $y fi elif [ "$choice" -eq 5 ]; then if test -e /usr/X11R6/bin/icewm then exec xinit `which icewm` -display :0 -- :0 & else echo $y fi else echo "Wrong Desktop Choosen... aborting!" exit 0 fi } main() { blabla textmenu readchoice_test_run } main #Release Date: Thu Dec 26 02:32:53 EET 2002 #Visit --=www.pcfreak.cc=-- - Say No To M$