ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Hook for renaming new window


From: Ivan Beschastnikh
Subject: Re: [RP] Hook for renaming new window
Date: Fri, 8 Jul 2005 13:57:35 -0500
User-agent: Mutt/1.5.6+20040818i

I guess you can bind the bind the key to instead of execing firefox,
exec a script that will:

1. run 'ratpoison -c windows'
2. grep that for the title you are seeking
3. if it's not found, run 'ratpoison -c 'title $W new_title''
   where $W is the window #

ivan.



On Fri, Jul 08, 2005 at 05:31:42PM +0800, Nazri Ramliy wrote:
> Hello list,
> 
> Anybody has any idea how to make it so that I can automatically retitle
> a certain top level window the first time it is created?
> 
> My situation:
> 
> I use xbindkeys to select my main firefox window, the default title
> for this is "Gecko".
> Subsequent firefox windows (created by pressing Ctrl+N in firefox)
> will also be titled "Gecko".
> 
> Normally I manually retitle (C-t + A) the first window to "Browser", and have
> xbindkeys raise it whenever i press Alt+Spacebar.
> 
> I guess what I'm really asking is this:
> 
> If there are no windows with the title Browser,
>  if a new window title == "Gecko",
>    retitle new window to "Browser"
> 
> TIA
> 
> 
> _______________________________________________
> Ratpoison-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ratpoison-devel




reply via email to

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