steveedson / bitbar-php Goto Github PK
View Code? Open in Web Editor NEWPHP formatter for BitBar plugins
License: MIT License
PHP formatter for BitBar plugins
License: MIT License
using this:
$line = $bb->newLine();
$line
->setText($scores)
->setFontFace("courier")
->setDropdown(true)
->show();
I do not see any changed font? plugin works fine otherwise.
https://github.com/dg01d/bitbar-plugins/blob/master/Sports/worldcup.1m.php
I have confirmed I can see courier using this plugin:
https://github.com/matryer/bitbar-plugins/blob/master/Tutorial/ansi.sh
Any ideas?
Where did this vendor directory come from?
Where is this autoload.php and what does it do?
Why do you include a composer.json and tell us to add a new one with a different content?
These are the worse instructions Jesus https://github.com/SteveEdson/bitbar-php.
// Create BitBar formatter
$bb = new BitBar();
// Create the first line
$line = $bb->newLine();
// Set the text and formatting
$mainMenu = $line
->setText("Servers")
->setColour("yellow");
$mainMenu = $mainMenu->addSubMenu()
->newLine()
->setText("Server 1")
->setUrl('http://server1.com');
$mainMenu = $mainMenu->addSubMenu()
->newLine()
->setText("Server 2")
->setUrl('http://server2.com');
$mainMenu->show();
GitHub style emojis should be converted to the correct emoji, so that it displays in the menu bar. This should be configurable with the ability to be displayed.
E.g. :sunny: 5°C
-> ☀️ 5°C
Where exactly is this autoload.php and where is the vendor folder?
Lines beginning with -- will appear in submenus
As of v1.8.0, Bitbar supports sub menus.
Versions prior to this should suppress sub menus
Added in 1.8.0
Not sure what version of version the image
parameter was added to BitBar, but support needs to be added here.
Hi Steve,
Love the library, makes lines and dropdowns a breeze, but:
As of v1.8.0, Bitbar supports sub menus.
Could you explain how it supports them? I can see that the logic in the file is public function addSubMenu()
but I can't get this to work in my scripts.
The BitBar parameter here called "imageTemplate" is actually called "templateImage" causing template images not to work at all.
PR #8 will fix this
Added in 1.8.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.