Look to syntax %...% in:
AddToMenu MenuMyDev "My Dev Menu" Title
+ &Firefox%iceweasel.png% Exec exec firefox -no-remote -P devel
ImagePath control colon search path for icons and I have broad definition to
gather different sources (as many as possible):
# ImagePath +:/usr/share/icons/hicolor/16x16/apps
# ImagePath +:/usr/share/icons/hicolor/64x64/apps
# This paths contain large icons for some apps, they make menus look ugly...
# ImagePath +:/usr/share/app-install/icons/
# ImagePath +:/usr/share/pixmaps
Some paths commented because they provide too big images. Fvwm uses exact
size of image when it displays icon. Some of them occupy half of screen!
Are there any syntax:
(1) to set maximum allowed icon size for displaying (and ignore large image)?
(2) to specify how resize image (scale down any that bigger then ...)?
I can't control which icon is supplied by package in Debian repository. That
is true for:
Most package doesn't respect /usr/share/icons/hicolor/24x24/apps like
directories and place icons in above paths.
Auto-generated /etc/X11/fvwm/menudefs.hook uses full path to icon so I can't
select desired size by ImagePath.
Some 3rd-party packages I install in /opt hierarchy and usually they also have
single BIG icon.
I like to see (2) option e.g. something like:
+ &Firefox%iceweasel.png%32% Exec exec firefox -no-remote -P devel
but (1) option also take a lot of images from /usr/share/pixmaps like
Another option is to preprocess /etc/X11/fvwm/menudefs.hook and place resized
images into predefined path.
Or carefully craft processing of /etc/xdg/menus/*.menu. I use xdg.Menu and
xdg.DesktopEntry Python classes to build menus myself.
If Fvwm hold menu images into memory (without loading on demand) - present of
(2) option looks natural for me.