[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Colon command to start up programming environment
From: |
Lionel Flandrin |
Subject: |
Re: [STUMP] Colon command to start up programming environment |
Date: |
Fri, 17 Oct 2008 18:10:52 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Oct 17, 2008 at 05:35:52PM +0200, Johan Andersson wrote:
> Hi!
>
> Just got Stumpwm working, and so far I love it! =) Thanks for this great
> software!
>
> I like to do scripts in both Emacs and Bash to automate stuff I do a lot. So
> I thought Stumpwm would help me with a couple of stuff to.
>
> I want to start a programming environment by running a (colon) command. So I
> tried something like this:
>
> (define-stumpwm-command "programming"()
> (gnew "programming")
> (run-shell-command "emacs")
> (run-shell-command "firefox")
> (run-shell-command "urxvt")
> (run-shell-command "urxvt")
> (hsplit)
> (fnext)
> (vsplit)
> (vsplit)
> )
>
> But it won't work. And I guess that is because the Lisp command
> run-shell-command only sends a signal to the shell and then goes on to the
> next command. And because of that the programs have not yet had time to
> start up. And because of that all goes wrong.
>
> How can I solve this?
>
> Thanks!
You're looking for placement rules:
http://www.nongnu.org/stumpwm/manual/stumpwm_4.html#SEC19
--
Lionel Flandrin