Re: Set title bar name

2004-03-17 Thread Bill Moseley
On Wed, Mar 17, 2004 at 02:31:45AM -0500, Gregory Seidman wrote: > } > xprop -id $WINDOWID WM_NAME | sed 's/^[^=]*= "\(.*\)"$/\1/' > } > } Hum.. That works locally, but not on ssh connections. $WINDOWID isn't set. > > That all depends on how you start your ssh sessions. I generally use: > > ssh

Re: Set title bar name

2004-03-16 Thread Gregory Seidman
On Tue, Mar 16, 2004 at 11:18:13PM -0800, Bill Moseley wrote: } 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

Re: Set title bar name

2004-03-16 Thread Bill Moseley
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 t

Re: Set title bar name

2004-03-16 Thread Gregory Seidman
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

Re: Set title bar name

2004-03-16 Thread Bill Moseley
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 /^

Re: Set title bar name

2004-03-16 Thread Ken Irving
On Tue, Mar 16, 2004 at 04:59:45PM -0800, Bill Moseley <[EMAIL PROTECTED]> wrote: > ... Is there a program to set > the title bar name that I can use as a wrapper script for nano -- set it > to the file I'm editing, start nano, then on exit reset to "xterm". Here's a shell script I've been using

Re: Set title bar name

2004-03-16 Thread Cameron Hutchison
Once upon a time Bill Moseley said... > When I run vim from an xterm session it sets the name of the file I'm > editing. I'd like to do this with nano, too. Is there a program to set > the title bar name that I can use as a wrapper script for nano -- set it > to the file I'm editing, start nano,

Re: Set title bar name

2004-03-16 Thread forum
> When I run vim from an xterm session it sets the name of the file I'm > editing. I'd like to do this with nano, too. Is there a program to set > the title bar name that I can use as a wrapper script for nano -- set it > to the file I'm editing, start nano, then on exit reset to "xterm". Unless

Set title bar name

2004-03-16 Thread Bill Moseley
When I run vim from an xterm session it sets the name of the file I'm editing. I'd like to do this with nano, too. Is there a program to set the title bar name that I can use as a wrapper script for nano -- set it to the file I'm editing, start nano, then on exit reset to "xterm". -- Bill Mo