I've made launcher for a command , and i fixed it on panel , i want to make the icon of it get changing when i press on it, to indicate the command is running.
i notice the network icon has that feature, when it disconnects his icon is changed or composite with yellow or red mark.
A launcher icon does not have the ability to have a dynamic icon.
The network plugin is an indicator plugin, not a launcher.
To create what you want; you would need to write some code for creating a panel indicator.
the app is cortile, it doesn't have gui window to show it's icon on the panel which show or indicate the running app, it run in background for making tiling. so i make launcher for it to run it.
I thought it is easy to customizing icon of the launcher to indicate the app is running, but launcher icon doesn't has any option for dynamically change or i hope if it is highlight during running or when i press it.
i found there are alot of other ways to indicate the app is running like using notify command or by echo message when the app run or stop.
but i want ways that show or echo the state or show icon on the panel, i searched about that , i found plugin xfce4-genmon ,which allow to echo or print the result of command on the panel, and i found it also allow to echo icon.
![]()
I'm using zorin lite xfce,display the icon on it depend on launcher plugin that can fix on the panel with it's default icon or u can change the icon of the app,if the app has gui window, when click on the launcher of it ,it show the default icon of the app separately on the panel using the built-in one which is window button plugin it has certain mechanism on display the icon on the panel not similar to anther plugin it's name is docklike(i think it depend on .desktop, ~/.local/share/applications/ it has problem with panel(he can't not recognize the icons executable apps) , also i'm talking about app not have gui window so no window button for it.
genmon plugin in xfce allow displaying the result of command in field on the panel.
i used it to indicate the state by query command(if app is run echo icon.png if not echo " "
here i used it to indicate it's running
if pgrep -f "/home/eid/cortile" > /dev/null; then
echo "<icon>preferences-color</icon>"
else
echo ""
fi

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.