How to stack strings on top of eachother in labels/icons? #704
Unanswered
MaquedaMarco
asked this question in
Q&A
Replies: 1 comment
-
@MaquedaMarco The trick is to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I’ve been trying to create a weather plugin, and for it I need to format the text on the label.
Specifically, I want to show text on top of each other.
I’ve tried to use printf and \n, but to no avail.
Weirdly enough \t works.
This is doable as I've seen it in multiple Sketchybar configs, such as Sketchybar creator’s (dot files) and his wifi plugin using it.
There are others examples with cpu usage and calendars.
Image for reference:

This is the code I’m trying to run:
This is how it appears in my bar:

Any help would be much appreciated.
Apologies in advance if this is trivial, quite new to all this.
Beta Was this translation helpful? Give feedback.
All reactions