richie5um / TextBar-Recipes

TextBar Recipes
369 stars 35 forks source link

Multiple rows in menubar #44

Closed Henrietta1989 closed 5 years ago

Henrietta1989 commented 7 years ago

Is there any way to have in menu bar (not in drop-down menu) 2-3 rows of text?

richie5um commented 7 years ago

Can you draw me a picture? Thanks.

Henrietta1989 commented 7 years ago

See this as example of 2 rows:

http://www.ragingmenace.com/software/menumeters/MenuMetersMenubar.png

richie5um commented 5 years ago

Yes, this is possible, but requires a little bit extra effort.

You can import this script to see how I've done it for IP addresses (Internal + External).

Extract this zip, then double click to import into TextBar. IPs.textbar.zip

It uses the (single line!) HTML to render the item on two lines - make sure your script outputs the entire HTML in a single line (otherwise it will just show as raw text).

When you've imported, click on the folder icon here, to see the actual script file.

image

Or, just set this as a TextBar script to see a quick example: echo '<html><link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet"><body style="font-family: 'Quicksand', sans-serif;font-size:8"><div>Line 1</div>Line 2</body></html>'

image