Re: FVWM: A suggestion for FVWM developers.

From: <larry.gensch_at_digital.com>
Date: Fri, 26 Mar 1999 13:30:17 -0500 (EST)

On 26 Mar, Bill OConnor wrote:

> I'm currently using FVWM95 with RH Linux 5.2.

This is the FVWM (FVWM-2, actually) mailing list; there's another list
for Fvwm95.

> I keep a lot of shell windows
> open but I'm unable to tell which one is which in the taskbar. It would be
> nice if the working directory would show up in the window title and in the
> taskbar when the window is reduced. Maybe this is already possible. I
> would delve into this myself but I just have to many other projects to work
> on at the moment that are not optional.

Here's a simple script that might work for you (title.sh)

    #! /bin/sh

    case "$TERM" in
    xterm*) [ -n "$1" ] && echo -n "^[]0;${1}";;
    esac

Note that the '^[' above should be a literal ESCAPE (Hex 1b) in your
script file and not the two characters I replaced it with above.

Note that your shell may require the use of "echo \c" instead:

    #! /bin/sh

    case "$TERM" in
    xterm*) [ -n "$1" ] && echo "^[]0;${1}\c";;
    esac


Anyway, typing "title.sh `pwd`" should then retitle your xterm to the
current working directory. You can use aliases, shell functions, or
hooks to get your shell to run this whenever you change directories.
Consult your shell documentation or man page for more information.

-- 
Larry Gensch					      larry.gensch_at_digital.com
I would really appreciate it if the login command had a better sense of humor.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Mar 26 1999 - 12:31:16 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST