LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   starting an desktop manager (https://www.linuxquestions.org/questions/programming-9/starting-an-desktop-manager-70233/)

qanopus 07-05-2003 04:59 AM

starting an desktop manager
 
I use KDE, but somtimes I prefer fluxbox. Rather then chaning "~/.xinitrc" everytime, I would like to give an option to "startx" which one I want to start. So to start kde, I would do "startx kde" and to start fluxbox, "startx fluxbox". To do this, I created the following ".xinitrc" script:

Code:

#!/bin/bash

case "$1" in
        fluxbox)

                #start fluxbox, gkrellm and set the background
                bsetbg ~/art/bg.jpg
                gkrellm&
                exec fluxbox
                ;;
        kde)

                #start kde and karamba
                karamba_run&
                startkde
                ;;
        *)
                #start kde by default
                karamba_run&
                startkde
                ;;
esac

But it doesn't seem to work. Could someone help?


All times are GMT -5. The time now is 05:56 AM.