开源软件名称(OpenSource Name):swiftbar/SwiftBar开源软件地址(OpenSource Url):https://github.com/swiftbar/SwiftBar开源编程语言(OpenSource Language):Swift 99.8%开源软件介绍(OpenSource Introduction):SwiftBarAdd custom menu bar programs on macOS in three easy steps:
You can get plugins from awesome BitBar repository, or in SwiftBar itself using the How to get SwiftBarDownload from GitHub Releases or Install with Homebrew
Runs on macOS Catalina (10.15) and up. ...or build it from source
Plugin RepositorySwiftBar is bundled with a Plugin Repository. You can access it at Swiftbar → Get Plugins... If you want to add\remove plugin or have other questions about repository content please refer to this issue. Creating PluginsTo add a new plugin to SwiftBar, you need to create an executable script following the required format (see below) and put it into Plugin FolderWith the first launch, Swiftbar will ask you to set the Important:
Plugin NamingPlugin files must adopt the following format:
Duration modifiers:
Example filename: Whether you are using a plugin from the plugin repository, or creating your own, plugins will initially appear in the menu bar in no pre-determined order. However, you can reorder how they appear by holding down Cmd and dragging them (this process can sometimes also be used on some other non-SwiftBar icons in the menu bar too). Plugin position will be remembered unless you change the name of the plugin file, in which case they'll need to be re-positioned again. Plugin APIPlugin is an executable script in the language of your choice. When SwiftBar detects a new file in Script should produce output ( Plugin API is adopted from the BitBar, which means that SwiftBar can run any existing BitBar plugin. Script OutputWhen parsing plugin output SwiftBar recognizes the following blocks:
The simplest plugin looks like this: echo "This is Menu Title" If you provide multiple titles, the provided titles will be cycled in the menu bar and shown in the dropdown menu: echo "This is a primary Menu Title"
echo "This is a secondary Menu Title"
echo "This is a n-th Menu Title"
echo "---"
echo "This is not a Menu Title, this will be showed in the drop-down menu only" Script output for both header and body is split by line (
Where:
ParametersText Formatting:
全部评论
专题导读
上一篇:waylybaye/XcodeCleaner: Cleaner for Xcode.app built with react-native-macos发布时间:2022-08-18下一篇:johnste/finicky: A macOS app for customizing which browser to start发布时间:2022-08-18热门推荐
热门话题
阅读排行榜
|
请发表评论