From: Seiichi S. <ss...@sh...> - 2005-02-24 08:28:45
|
On Tue, Feb 22, 2005 at 12:41:53AM +0900, MINAMI Hirokazu wrote: > The feature may not work depending on your window manager etc. > Since we are planning to release mlterm 2.9.2 by the end of this month > and I'm going to include this change into next release, > please let me know if it works for you. I tested the feature with some window managers. Here is the result: applied when --iconpath mlcc input_method attaching pty ==================================================================== metacity-2.8.8 working working working openbox-3.2 working working working wmaker 0.91.x working not working(*1) not working(*1) sawfish 1.1.3 working not working(*1) not working(*1) twm (XFree86-4.3) working working working ===================================================================== *1) applied after restarting window manager. > If you have installed "mlcc", you can use > mlcc icon_path /path/to/an/image > instead of composing a magic string. mlcc is useful for me. I added the following aliases to ~/.bashrc. function launch_with_icon () { ICON_DIR=/home/sch/Icons case $1 in vim|vimdiff) ICON=$ICON_DIR/gvim.png ;; mutt) ICON=$ICON_DIR/mutt_icon.gif ;; man) ICON=$ICON_DIR/Manual.png ;; *) ICON="" ;; esac if test x$ICON = x ; then $@ else mlcc icon_path $ICON $@ mlcc icon_path $ICON_DIR/mlterm-icon-gnome2.png fi } if test x$TERM = xmlterm ; then alias vim="launch_with_icon vim" alias vimdiff="launch_with_icon vimdiff" alias mutt="launch_with_icon mutt" alias man="launch_with_icon man" fi -- Seiichi |