[xmonad] startup programs
Ferenc Wagner
wferi at niif.hu
Mon Aug 17 06:11:02 EDT 2009
Bozelos Dimitris <dbozelos at yahoo.gr> writes:
> 1) Sometimes programs are placed in different order than asked in
> the startup hook, probably because of different startup times. Also
> sometimes one program might need another to successfully run. So is
> there a way to have xmonad to wait until one program has fully
> started before proceeded to the next? In my case something like
>
> myStartupHook = do
> spawn "xterm -e '/usr/bin/jackd -R -dalsa -r48000'"
> a command for " wait until jackd has ran " or " wait 5 seconds " and then
> spawn "xterm -e 'chuck --loop --srate48000'"
spawn "sleep 5; xterm -e 'check --loop --srate48000'"
or something more elaborate, like
spawn "while ! jack_lsp; do sleep 1; done; xterm ..."
> 3) With some programs with no graphical interface that print
> messages to the terminal like jackd as above, when I startup with
> the above way it's not really the same as if I would call it from a
> terminal. If it terminates for any reason it dissapears while if I
> had ran it from a terminal the terminal would stay and I could have
> seen any error messages. Anybody knows if it can be otherwise?
Try spawn "... || read" for example. Your shell is at your command.
--
Feri.
More information about the xmonad
mailing list