That would be nice.
If tray-icons are supported, it would be nice if they were scriptable as well, something like
icon -arc <@name> [file<index>]
-a: add custom icon named @name to tray using icon [index] from [file]
-r: remove custom icon <@name> from tray
-c: change <file<index>> for custom icon <@name>
It would use standard menu definitions:
menu @my_trayIcon {
tooltip:this would be a custom tooltip (would also be nice for @windows in buttonbar)
dclick:{
window -ak0 @blah
icon -r @my_trayIcon
}
sclick: window -ak0 @blah
$iif($window(@blah).state == normal,$style(2)) Show window:window -ak0 @blah
$iif(!$window(@blah),$style(2)) Close window:window -c @blah
$iif($window(@blah).state == hidden,$style(2)) Hide window:window -h @blah
}