Re: FVWM: A suggestion for FVWM developers.

From: Benoit Champagne <chabe04_at_cai.com>
Date: Fri, 26 Mar 1999 13:33:54 -0500 (EST)

Are you using xterms (or any variant thereof)?

If you do, you can achieve this using simple escape sequences on your command
line.

For example, I have these funcs defined in my .profile:

# Sorry for the french: Translation: set window title
# Fonction pour mettre le titre de la fenetre a une valeur quelconque.
set_wmtitle() {
  if [ ".$1" = "." ]; then
    echo "Utilisation: set_wmtitle TITRE"
  else
    echo "]2;$1\c"
  fi
}

# Translation: Set Icon title
# Fonction pour changer le nom de l'icon
set_wmicon() {
  if [ ".$1" = "." ]; then
    echo "Utilisation: set_wmicon TITRE"
  else
    echo "]1;$1\c"
  fi
}

# Augment the 'cd' command: this one puts the PWD in the title bar
cdd() {
  if [ $SHELL = zsh ]; then
    OLDCWD=`pwd`;command cd;cd $1;CWD=`pwd`
  else
    OLDCWD=`pwd`;unalias cd;cd $1;CWD=`pwd`; alias cd=cdd
  fi

  # PS1="../`basename $CWD`> "
  echo "]2;LOGIN - [$HOST":"$LOGNAME] $CWD\c"
}

# If not using VIM...
# use this to put the buffer name in the window title area
# VI pour mettre le nom du fichier ainsi que le CWD dans le haut de la fenetre
_vi() {
  # CSH Syntaxe
  # echo "]2; [$HOST":" $CWD] \!*"; ex -v \!*; mypwd'
  # KSH Syntax
   echo "]2; [$HOST":" $CWD] $*"; ex -v $*;cdd $CWD
}


Hope this helps a little..

Best Regards

===>Bill OConnor writes:

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

    Bill> Another small but sometimes annoying occurrence is popup menus near
    Bill> the right side of the screen. If you right click close to the right
    Bill> side, roll over an item that is itself a menu, the new menu pops up
    Bill> over the top of the current menu, preventing selection of the next
    Bill> item. The new menu should popup to the left of the current menu.

    Bill> Just a few suggestion to make things a little more usable.


    Bill> -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
    Bill> To unsubscribe from the list, send "unsubscribe fvwm" in the body of
    Bill> a message to majordomo_at_fvwm.org. To report problems, send mail to
    Bill> fvwm-owner_at_fvwm.org.


-- 
---------------------------------------------------------------------
    Continuum all the way                 COMPUTER ASSOCIATES
Benoit Champagne  ift.a             |  Main Line : (450) 978-4899
Tel  : (450) 978-4913               |    3090 Boul. Le Carrefour
FAX  : (450) 978-4909               |          Suite 300
Email: benoit.champagne_at_cai.com     |          Laval, PQ
                                    |           H7T 2J7
Nice Words from F1 analysts:
  Murray: And look at the flames coming from the back of Berger's McLaren 
   James: Actually, Murray, they're not flames, it's the safety light
---------------------------------------------------------------------
--
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:35:35 GMT

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