You are not logged in.

#1 2012-05-10 21:08:58

knob
Member
Registered: 2009-01-30
Posts: 51

xfce genmon plugin

I would like to set the text of the tooltip (<tool></tool>) on 2 or more lines (not wrapped) ... the thing is, I can't see how I can achieve this as all my attempts failed.
I asked on the xfce chan yet no response ... mb you guys know?

Thanks

Offline

#2 2012-05-11 04:17:34

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: xfce genmon plugin

I imagine you could achieve this by putting "\n" or "\\n" at the spot where you want a new line.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-05-11 12:34:04

knob
Member
Registered: 2009-01-30
Posts: 51

Re: xfce genmon plugin

Tried it ... doesn't work ...
Also tried <br> even though it's not part of the pango markup language ...
And simply pressing 'enter' breaks functionality.

Offline

#4 2012-06-26 00:03:11

smoothsailing
Member
Registered: 2012-06-25
Posts: 2

Re: xfce genmon plugin

It works on my system, though I am using the old 4.6 version. I use \n so for example my script that shows my current bandwidth for the day:

<txt>87 MB</txt>
<tool>86.92 MB\nThis is the second line</tool>

Ya, I put the second line there just to test it. You can also just put a normal 'enter' in there too. My code is in perl:

print "<tool>$exact
This is the second line";

Then the genmon adds a space. Just make sure your program is not taking the \n for itself, though that really shouldn't matter. Best of luck.

If you still have problems, post the complete *output* of the program.

Offline

Board footer

Powered by FluxBB