This is a follow up to my post
but since it’s an extension I’m starting a new thread.
It’s also a variant of an ealier post of mine,
but I know about more now what to ask for.
Thanks to Thomas’s help with the first post, I can now assign a custom icon to the taskbar button assocated with certain programs, like xpdf:
Style "Xpdf" EWMHMiniIconOverride, Icon Nop , MiniIcon /home/simon/.fvwm/png/pdf_16icon.png
But I can only do this for programs like Xpdf which have predesignated classes.
There are certain commands, like vi and matlab, which I would like to call from the command line within an Xterm, for which I would like to do something analogous, i.e., display the mini-icon for matlab in the associated task bar button. But since the class of the window remains Xterm, independent of my command, I can’t assign a custom icon associated with the class of the command that I call.
Obviously, I could open a new xterm each time i call matlab, e.g.,
xterm -hold -class myMatlab -e "/usr/local/MATLAB/R2015a/bin/matlab -nosplash -nodesktop" &
and write a style command for myMatlab with the icon I want.
But I’d prefer to avoid opening a new xterm each time.
The other thing I’d like to do is set the color of the taskbar button, but cannot for the life of me figure out how to do that.
Thanks very much for any advice.