Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-14 14:12:07

jlfh0816
Member
Registered: 2022-10-05
Posts: 16

[ SOLVED ] find out genmon ID by command line

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! tongue):

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

#2 2022-10-14 15:43:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [ SOLVED ] find out genmon ID by command line

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

#3 2022-10-14 16:34:09

jlfh0816
Member
Registered: 2022-10-05
Posts: 16

Re: [ SOLVED ] find out genmon ID by command line

Thank you very much ToZ!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 522.89 KiB (Peak: 523.73 KiB) ]