Changing minimized icons

When an application window is minimized, it becomes a small square window on your desktop, an icon to be more precise. The icon is made of a small image that usually represent the application it belongs to and a text-label that is the title of that application window.

This icon image can be changed to your liking. This is useful when the application you use doesn't have an icon (you see the dark blue square which is the default "unknown" icon) or you wish to change the default icon image.

5Dwm is using the X Resource application name or class defined by the Atom WM_CLASS of your application. For instance, winterm (the motif-xterm) is : WM_CLASS(STRING) = "winterm", "MXTerm". So the icon image file is either winterm.xpm or MXTerm.xpm.

You can determine the X application name and class by using xprop X11 utility. Just start a terminal, type 'xprop' and click the window you want the information from.

A few things to remember before you start;

  • The default icon's image size for 5Dwm is 85x67 pixels
  • only XPM format is supported at the moment.
  • use the application name or class as icon image file name.

Since 5Dwm is based on Mwm (like 4Dwm) it accepts Mwm's iconImage resource. Thus:

nedit .Xdefaults

The syntax is

5Dwm*application_name*iconImage: /path/to/icon-image-file

Example:

5Dwm*xchat*iconImage: /opt/MaXX/share/images/xchat.xpm

Logout/login or reload your settings with xrdb and restart 5Dwm

$ xrdb -load -quiet ~/.Xdefaults
$ xrdb -merge -quiet ~/Sgiresources
$ tellwm restart

Go back