You are not logged in.
I have read some talks about adding active icons in the panel in xfce4 but none of them have solved my doubt:
I have an app that works in background. When it is running, I would like that an icon should only appear in the panel (right panel - notification area) and disappears when not working. This behabiour is similar than Dropbox app. How can I do to get this behaviour in my app? I have installed Xubuntu 14.04.
Any ideas?
Thank you
Last edited by joseba.villanueva (2016-04-14 02:07:10)
Offline
Hello and welcome.
Have a look at the genmon panel plugin. It's a timer-based plugin that is used to execute scripts/processes in a scheduled manner. You can configure the text and/or icon to display when a given process is started. You can also craft a script in such a way to test for the existence of something, and depending on the result, display a different icon,.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
have a look at alltray: https://github.com/mbt/alltray or at yad(it has an option to dispay notify icons) : https://sourceforge.net/projects/yad-dialog/
Last edited by sixsixfive (2016-04-14 21:04:55)
Offline
Thanks for the information. I will try it this weekend.
Offline
I've tried your solutions with different results:
- genmon: It is supposed I could intall it, but it doesn't appear in my Xubuntu 14.04. I installed it from Software Manager. I would like to know how it works because in other forums people recommend it too.
- alltray: I check it and it is an interesting application. But it is not exactly what I am looking for. I think it is similar than "kDocker" app. I prepared a script with "kDocker" that works for me:
#!/bin/bash
kdocker -n MyNameScript -i /path/to/my/icon/script/IconScript.png -d 40 /path/to/my/script &
http://askubuntu.com/questions/20989/ho … -minimized
But the solution that best fits what I want to do is described by Jacob Vlijm:
http://askubuntu.com/a/757599/344918
It is what I was looking for.
Thank you for your help.
Last edited by joseba.villanueva (2016-04-17 09:09:34)
Offline
- genmon: It is supposed I could intall it, but it doesn't appear in my Xubuntu 14.04. I installed it from Software Manager. I would like to know how it works because in other forums people recommend it too.
Create the following script:
#!/bin/sh
APP="mousepad"
if pgrep $APP; then
echo "<img>/home/toz/.icons/arch.png</img>"
else
echo "<txt></txt>"
fi
exit 0
...replace the APP value with the app/script you want to monitor, and the name of the icon that you want to display when the process is active. Add the genmon plugin to the panel and set:
- Command = /path/to/your/script
- uncheck Label
- set Period to the time between checks for the process.
But the solution that best fits what I want to do is described by Jacob Vlijm:
http://askubuntu.com/a/757599/344918
This solution will only work in Xfce with the xfce4-indicator-plugin - not all distros ship this as it is an ubuntu-specific package.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I am sorry. Perhaps I haven't explained correctly. I installed the genmon-panel-plugin by Software Manager, but I can't open it. There is no icon, command, etc... that let me to open it.
I tried to compile the plugin but it gave me the message below:
checking for libxfce4panel-1.0 >= 4.8.0... not found
*** The required package libxfce4panel-1.0 was not found on your system.
*** Please install libxfce4panel-1.0 (atleast version 4.8.0) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.
So I guess that the plugin is not correctly installed in spite of showing that it is installed (Software Manager).
I tried to install this package via Synaptic but it doesn't appear.
Any ideas how to fix it?
Offline
I am sorry. Perhaps I haven't explained correctly. I installed the genmon-panel-plugin by Software Manager, but I can't open it. There is no icon, command, etc... that let me to open it.
It's a panel plugin and you would enable and use it like you would use other panel plugins.
Right-click the panel, select Panel > Add New Items. Locate "Generic Monitor" in the list, select it and click "Add". It will now appear in your panel with the default text of "(genmon)XXX". Right-click the plugin, choose properties and configure it.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Upssss...
I was trying to look for as a "genmon-panel-plugin" in the "Add New Items". I had no idea that I had to enable "Generic Monitor"!! Now it appears. I will try tomorrow.
Thank you for your patient!
Offline
Yeah, ToZ. It works perfectly. Thank you.
Offline
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 563.26 KiB (Peak: 580.1 KiB) ]