Re: Set title bar name
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/'
} Bill Moseley
} moseley@hank.org
--Greg
Reply to: