-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multi-line titles #324
Conversation
echo "CPU\n10% | size=7" will be rendered on the menubar (or dropdown) as a single block of two lines.
65d5442
to
743ee47
Compare
Looks awesome! @matryer @iosdeveloper is this something you would like? I asked myself if this was feasible too. |
@vvo It's already in the v2 pre-release and the beta branch. |
Is this installable or documented somewhere? Thanks |
@vvo Look under Releases. |
Is this installable or documented somewhere? Thanks |
@vvo Sorry, I gave you the wrong URL. https://github.com/matryer/bitbar/releases/tag/v2.0.0-beta10 This has the release notes and compiled app binaries. |
@ganeshv @agentsmis @iosdeveloper I used this code: #!/usr/bin/python
# -*- encoding: utf-8 -*-
print "DISK\n16% | size=7 image='iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAABYlAAAWJQFJUiTwAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveD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OGexVXeefpHfxseHnzWcnFmVBSLJ4sfjKVQDs7yhFe6KeB3uZWSQVTu2ZgDmbieL3JmmHyurhn2wKUJ+vBI72/p6CN7+SAH+sRdjdjyQ4zb3d3D2xE7Pdb/6ICqLIq3tN+kwtYQKs7GYtlDFGczZ+Cr+w8NUlVIE2wwAGEp78d/Z0J5NzIKX2T2+JsV5NbCtLB2MKBbQ2NTxr6PP3+j7617n2CVenqOsSlEErL8D//q46b7X2uK1TW+H4+3LVcVGBWnPMgEMRIgu/MYjptwhZLdshxUMsmrhmQVTcUZpQZnZ6GIN6KqqrZhGO74hKkf+PSzfZ+88Cq2+LhEYvZKruPKADJQH+T1P325sWXOnJ54vD2hK3musuAG3sRRBDPMJlMhMwnQB1Gac2efEmZO13UT9cbwWI4OHvrijUOv9Nwtb7imX8NNA8jCfJDQJvDDpujvG+rrH66LYka6uEtgX3JxLAU03jnzgBKMD9T/LuYsk+8KdbCmapqCuyPtTO8Z+vzk+e0n37jnSa4Xk6LCHWFFgKI97utwRSscde0Db22qrane3tAwZ1kYV73kSEbZqRAymENG52HFC8DAoOICEzq4DAqm1xzSaGh4lE739R3cf+rbxyn1UIrHutysosz7mREg1yf5lomeQo67kjW/q7p5aefPayKRrZFw+Lqa2hjCC2DAeK7LAR5AOMQJmIwRkFSedwpuDUwaGrxAQ6PjH3397cifzv7zvpdRYYsr5qWYECx/hjQrQL9PweSyQF9xz8511eHAxnAgsAYBtks3jPpAMKziule0wOmQclMZGwfxoclc/sRYOnPgs4tju633tu4vyMQ9YKqCSf16P/9OAEXjZFJN0M2qf2/tCVDp1mdar6qOtOmkxDRdjSBeujnLzoznrMGBU8P99L/HvvXaikwqi39DIAiXls/0/n8Q074DGxBhIgAAAABJRU5ErkJggg=='"
print "---" |
echo "DISK\n16% | size=7 templateImage=..."
will be rendered on the menubar (or dropdown) as a single block of two lines. Closes #264.
Menu bar space is always at a premium. The same label expanded would occupy much more space. While readability vs space is a tradeoff which must be carefully considered, this feature gives plugin writers a wider field to experiment.