How to change starter icon in menu bar from a script
I am looking for a way to visually indicate the status of a self-written script (bash) that runs in the background. My first idea was to set up a custom starter in the menu bar, define mystatus.png as its icon and then copy either green.png or red.png over it in order to reflect the states "enabled" and "disabled".
Unfortunately Gnome does not seem to update the icon (at least not within a couple of seconds) in the menu bar and I wonder if there is a way to force it to reload the icons (or the whole menu bar, but that would probably be overkill...).
Any ideas anyone?
Re: How to change starter icon in menu bar from a script
look at this:
exec 3> >(zenity --notification --listen)
echo "icon:info" >&3
echo "icon:error" >&3
if you want to change the state clicking the icon, you have to use zenity --notification the normal way
Tags for this Thread