topic title: startup.sh
Posts: 138
harii
Joined: 14 Nov 2007
#1
I going to test window managers on my test box.
And wondering if:

I use one (shared) startup (app) script for muli-WM's.
(the window managers that do not have any startup.sh)

Would this work--or cause problems for me later on?
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#2
Do you mean to start app when you boot up regardless of the WM? If so you could just use .xinitrc. At the top of the file place a #!/bin/sh and underneath a list of app you want started followed by a $. One on each line. This way the same apps will be started on each WM.

eriefisher
Posts: 138
harii
Joined: 14 Nov 2007
#3
__{{emoticon}}__ Your right
I don't know why i'm trying to making it harder than it needs to be?

Or would it have like--have two conky running when i switch?
I don't recall--so long ago

I might just have to try it

And i forgot to state that i'm using fluxbox as well-- and it has it's own startup file
Last edited by harii on 14 May 2008, 02:32, edited 1 time in total.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#4
If you have"conky" in your ~/.fluxbox/startup file and in your ~/.xinitrc you will have some issues. Just make sure only one starts the app not both.

eriefisher
Posts: 138
harii
Joined: 14 Nov 2007
#5
__{{emoticon}}__ thanks i'm over thinking tonight--or under?

I just have to make sure only one in the ~/.xinitrc file and remove the conky in flux's startup file.
eriefisher
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#6
Just comment it out"#" and it will be ignored.

eriefisher
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#7
Example ~/.xinitrc.

Code: Select all

#!/bin/sh

conky &
(sleep 5 wbar -above-desk) &
numlockx &
unclutter &
case $1 in
icewm)
    exec icewm
    ;;

fluxbox)
    exec startfluxbox
    ;;
*)
    exec startfluxbox
    ;;
esac
eriefisher
harii
Posts: 138
harii
Joined: 14 Nov 2007
#8
my wbar was more picky for some reason?

i had to change it to this--then it worked?
(sleep 15 && wbar -above-desktop) &

firebox loads other things first thats why the long wait.