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

Re: Set title bar name

On Wed, Mar 17, 2004 at 01:42:46AM -0500, Gregory Seidman wrote:
> On Tue, Mar 16, 2004 at 10:16:37PM -0800, Bill Moseley wrote:
> [...]
> } It would be nice if I could restore the window name back to what it was.
> } I know I can find the current title with xprop and a mouse click.  Any 
> } way to find if the program is running in a window and if so what the 
> } current WM_NAME is (without having to click the mouse?).
> } 
> } In other words, how can my perl script check if there's a name and what 
> } it is currently set as?
> This works on an xterm (and may work on other terminals, but I don't
> use 'em):
> xprop -id $WINDOWID WM_NAME | sed 's/^[^=]*= "\(.*\)"$/\1/'

Hum.. That works locally, but not on ssh connections.  $WINDOWID isn't set.

Bill Moseley

Reply to: