From: MINAMI H. <mi...@mi...> - 2005-02-21 15:42:33
|
Hi, I've committed changes to allow each mlterm window have its own icon image and make the icons configurable at run-time. 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. How to use: NOTE: You have to compile mlterm with gdk-pixbuf or imlib support. * by command-line option 1. run mlterm in a "daemon mode" (with "-j blend" or "-j genuine") 2. run "mlclient --iconpath=/path/to/an/image/file" then new window with specified icon should be opened. For example, mlclient --iconpath=/usr/X11R6/include/X11/pixmaps/vim.xpm -e vim may open a window running vim with vim's icon. * sending escape sequence On a shell running mlterm, execute echo -e "\033]5379;icon_path=/path/to/an/image\007" and the icon of the mlterm window should be changed. If you have installed "mlcc", you can use mlcc icon_path /path/to/an/image instead of composing a magic string. In both cases, the icon belongs to a pty, not to a window. i.e. if you create multiple ptys using Ctrl-F2 and change one of their icons, the icon of mlterm window will reflect the pty on it when you switch ptys using Ctrl+F3/F4. -- minami |
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 |
From: Seiichi S. <ss...@sh...> - 2005-02-25 07:40:43
|
On Thu, Feb 24, 2005 at 05:28:27PM +0900, Seiichi SATO wrote: > --iconpath mlcc input_method attaching pty s/input_method/iconpath/ -- Seiichi |
From: MINAMI H. <mi...@mi...> - 2005-03-01 09:27:10
Attachments:
mlterm-wmhints.diff
|
On Thu, Feb 24, 2005 at 05:28:27PM +0900, Seiichi SATO wrote: > On Tue, Feb 22, 2005 at 12:41:53AM +0900, > MINAMI Hirokazu wrote: > > 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 > ===================================================================== Thanks for testing. I didn't expected it would work on twm... The only property cared by WMaker/sawfish seems be XA_WM_HINTS. Do they notice the change of icon with attached patch? minami |
From: Seiichi S. <ss...@sh...> - 2005-03-01 14:45:35
|
On Tue, Mar 01, 2005 at 06:26:57PM +0900, MINAMI Hirokazu wrote: > The only property cared by WMaker/sawfish seems be XA_WM_HINTS. > Do they notice the change of icon with attached patch? It seems to have no effect. I tested GIMP which can change the own icon dynamically. But I got the same result on wmaker and sawfish. -- Seiichi |
From: MINAMI H. <mi...@mi...> - 2005-03-02 01:58:53
|
On Tue, Mar 01, 2005 at 11:45:28PM +0900, Seiichi SATO wrote: > On Tue, Mar 01, 2005 at 06:26:57PM +0900, > MINAMI Hirokazu wrote: > > > The only property cared by WMaker/sawfish seems be XA_WM_HINTS. > > Do they notice the change of icon with attached patch? > > It seems to have no effect. > > I tested GIMP which can change the own icon dynamically. > But I got the same result on wmaker and sawfish. Hmm, judging from wmaker-0.91/src/client.c, wmaker should be able to process PropertyNotyfy for XA_Wm_HINTS. Maybe I'm not correctly understanding on which window the property should be set. Anyway, the feature is not essential one and should not block 2.9.2 release. I'll investigate the way of wmaker in post 2.9.2 series. minami |