stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] Colon command to start up programming environment


From: Johan Andersson
Subject: Re: [STUMP] Colon command to start up programming environment
Date: Fri, 17 Oct 2008 20:18:06 +0200

I actually tried that by looking at the sample that follows the source. But it didn't seem to work in my case. Or I didn't understand how to use it.

For example. I work a lot with Rails. So I want four URxvt terminals in one group and then Emacs and Firefox in another group. I couldn't figure out how to specify that URxvt should be opened in frames 0 to 3.

I also tried with dump-window-placement-rules, but that only gave me a file containing NIL.

On Fri, Oct 17, 2008 at 6:10 PM, Lionel Flandrin <address@hidden> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]