You are not logged in.
Pages: 1
Hello
While working with secureIT on the Linux Mint Forum, I think we found a way to display the active genmon instance ID with this command line and and maybe it can be useful to the community (no more rummaging in the XFCE4 panel! ):
ID=$(grep -r -i name_of_your_genmon_script ~/.config/xfce4/panel/ | awk -F'[-.]' '{print $3}'); echo $ID
And if we want to use this command line in a script, just replace name_of_your_script with the particular variable "$0" (I don't know if the " " are really necessary... ), like this:
ID=$(grep -r -i "$0" ~/.config/xfce4/panel/ | awk -F'[-.]' '{print $3}')
I specify that this command line is the result of a collaborative work with secureIT which does a superb job around genmon scripts on this site
https://forums.linuxmint.com/viewtopic. … 6&start=20
Last edited by jlfh0816 (2022-10-14 16:34:51)
Offline
Thank you for sharing, and yes this is the method I've been using. Please note that for the next version of the genmon plugin, probably will be released around the same time as Xfce 4.18, the genmon plugin will transition to using xfconf instead of rc files for configuration storage. However, you should still be able to use xfconf-query to retrieve the command ID via the command.
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
Thank you very much ToZ!
Offline
Pages: 1
[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 522.89 KiB (Peak: 523.73 KiB) ]