ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] launch and title?


From: Mark Eichin
Subject: Re: [RP] launch and title?
Date: Thu, 24 May 2007 13:31:02 -0400

Umm, why would you ever use ratpoison -c exec, instead of just
*running* $1 directly?

And then once you realize that, you can just use "xtoolwait $1" which
waits until the window is up, at which point the ratpoison -c title is
a lot more likely to be reliable (I don't think you can actually do
better than that without knowing something about the program...)

On 5/24/07, address@hidden
<address@hidden> wrote:
Hi all.

I am looking for a fast and robust way to launch a program and change
the title of its window.
The following simple script is neither fast nor robust (i.e. it often changes
the title of the wrong window).


#!
# launch program $1 and rename its window to $2
ratpoison -c "exec $1"
sleep 2
ratpoison -c "title $2"

Ciao
Sven

_______________________________________________
Ratpoison-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ratpoison-devel





--
_Mark_ <address@hidden> <address@hidden>




reply via email to

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