Re: Set title bar name
On Tue, Mar 16, 2004 at 06:10:22PM -0900, Ken Irving wrote:
> Here's a shell script I've been using to set the window title...
Thanks. Perl seemed like the easiest way to skip leading switches,
although the "--" (no more switches) doesn't work:
#!/usr/bin/perl -w
for ( @ARGV ) {
next if /^\-/;
system("title $_");
system("/usr/bin/nano @ARGV");
system("title xterm");
exit;
}
exec '/usr/bin/nano';
A few extra forks, oh well.
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?
--
Bill Moseley
moseley@hank.org
Reply to: