You are not logged in.
Pages: 1
Hello
Is there a possibility to change the genmon-label by command line in a terminal or from a script?
For example, is it possible to display the content of a variable (text only) in the label?
Or can the modification only be done through the genmon control panel (label)?
thank you very much in advance!
Last edited by jlfh0816 (2022-10-16 14:50:45)
Offline
Currently it is not possible. It must be done through the configuration dialog. However, you could disable the label and include it as part of your output into the text area.
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
Hello ToZ
Thank you very much for your answer!
However, I don't understand when you say:
However, you could disable the label and include it as part of your output into the text area.
Could you give me a small example?
What the text area are you talking about?
Offline
Sure. Uncheck the label and add your label text inside the "<txt> </txt>" tags.
Assuming the genmon plugin is setup such that the label is "Speed" and the output of the script is 50Mbps, then:
SPEED="50Mbps"
echo "<txt>Speed: $SPEED</txt>
This way you can change the label "Speed" whenever you want.
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
Hello ToZ
Sorry for my late response.
Thank you very much for the example that you provide me and which is clear and didactic.
Is there a possibility to position the text area to the left of the icon?
In the text area, is it possible to use /n to wrap lines and therefore display two lines of text?
Offline
Is there a possibility to position the text area to the left of the icon?
Unfortunately. no.
In the text area, is it possible to use /n to wrap lines and therefore display two lines of text?
Yes. Example:
echo "<txt>Hello"
echo "There</txt>"
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
Excellent!
Many thanks for your reply ToZ.
Offline
Pages: 1
[ Generated in 0.039 seconds, 10 queries executed - Memory usage: 536.97 KiB (Peak: 538.25 KiB) ]