Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-02-25 03:34:42

callmejoe
Member
Registered: 2019-11-19
Posts: 75

genmon plugin - how to left justify output

here are the xml tags i am using in the script genmon is calling

echo -e "<txt>$output\n$output2</txt>"
echo "<tool>"$tooltip"</tool>"

2yYDyNB.png

any easy way to get that second line left justified so it lines up with the first line?

Offline

#2 2023-02-25 12:17:48

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

Re: genmon plugin - how to left justify output

Text alignment on GtkLabel is not currently supported through CSS properties or Pango Markup by GTK3. It needs to be programmatically managed and genmon doesn't do that.

You could try some shell scripting voodoo to try to right pad the second string, but that will only look good if you use a monospace font.


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 2023-02-26 02:51:26

callmejoe
Member
Registered: 2019-11-19
Posts: 75

Re: genmon plugin - how to left justify output

ah too bad. thanks for the reply.  i'll have a go at it with that script "voodoo"  smile

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 522.14 KiB (Peak: 522.98 KiB) ]