VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: IceWM titlebar icon hack  (Read 18416 times)

roarde

  • Vectorian
  • ****
  • Posts: 602
  • move the needle
IceWM titlebar icon hack
« on: July 04, 2013, 12:53:22 pm »

EDIT: This problem is fixed in a later version of IceWM. See next post.

Problem: After firefox upgrade, IceWM used the "default" icon in titlebar. Other WM's used the correct firefox icon.

The hack:
First, find the icon. If the Menu has it correct, that one should be fine. Firefox is on the "network" menu.
Code: [Select]
roarde:$ grep firefox ~/.icewm/menu-network
prog "Firefox" "/usr/share/icons/Faenza/apps/48/firefox.png" firefox

Put the icon where IceWM can find it
Code: [Select]
root:# cp /usr/share/icons/Faenza/apps/48/firefox.png /usr/share/icewm/icons
If Firefox (or whatever app you're working on) isn't running, start it. The icon will still be wrong, but we need it running for the next step.
Code: [Select]
roarde:$ xprop| grep WM_CLASS   # Click the crosshair on the Firefox window
WM_CLASS(STRING) = "Navigator", "Firefox"
(Could also have done 'xprop -name "Start new topic - Mozilla Firefox"| grep WM_CLASS' and avoided the clicking)

Now edit ~/.icewm/winoptions:
# This is an example for IceWM's window options file.
#
# Place your variants in /etc/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.

Navigator.Firefox.icon: firefox
xterm.icon: xterm
rxvt.icon: xterm
nxterm.icon: xterm
( . . .)


Log out, log in, start Firefox (or whatever). You should have the correct icon in its titlebar.

Come to think of it, Wicd's never had the right icon. Same deal, with a slight twist:
Found the icon in menu-network and copied it over as root. Got a Wicd window up.
Code: [Select]
roarde:$ xprop -name "Wicd Network Manager"| grep WM_CLASS
WM_CLASS(STRING) = "wicd-client.py", "Wicd-client.py"

The class strings have dots in them. Dot is used as a separator between class elements, so those dots need to be backquoted. The entry in ~/.icewm/winoptions looks like this:
# This is an example for IceWM's window options file.
#
# Place your variants in /etc/icewm or in $HOME/.icewm
# since modifications to this file will be discarded when you
# (re)install icewm.

wicd-client\.py.Wicd-client\.py.icon: wicd-gtk
Navigator.Firefox.icon: firefox
xterm.icon: xterm
rxvt.icon: xterm
(. . .)


Log out, log in.

No idea why all this is necessary, other than IceWM's age.

Or maybe it's this: http://sourceforge.net/p/icewm/bugs/845/
Don't really know.
« Last Edit: December 08, 2013, 06:39:14 pm by roarde »
Logged
Robert
VL 7.1 Light RC 2

roarde

  • Vectorian
  • ****
  • Posts: 602
  • move the needle
Update: IceWM titlebar icon hack
« Reply #1 on: December 08, 2013, 06:25:44 pm »

For VL 7.0, installing icewm-1.3.8 from the testing repo seems to solve this issue.
Logged
Robert
VL 7.1 Light RC 2

Mektub

  • Member
  • *
  • Posts: 1
Re: Update: IceWM titlebar icon hack
« Reply #2 on: December 15, 2013, 04:37:25 pm »

For VL 7.0, installing icewm-1.3.8 from the testing repo seems to solve this issue.

With Archlinux even with version 1.3.8 it doesn't solve the issue.
And above solution doesn't either.

Doing a icewm restart does show the assigned icon in winoptions for a couple of seconds, but it then reverts to the generic one.

I think this shows the icewm age.

I am testing jwm, to see if it is a viable alternative.

Mektub
Logged