SwiftBar
4,780
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
Swift
语言
创建时间
最近更新
项目能做什么
功能强大的 macOS 菜单栏自定义工具。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[](https://github.com/swiftbar/SwiftBar/blob/master/LICENSE)
[](https://github.com/swiftbar/SwiftBar/releases/latest)
[](https://github.com/swiftbar/SwiftBar/releases/)
<p align="center">
<img width="155" alt="SwiftBar Logo" src="Resources/logo.png">
</p>
# SwiftBar
Add custom menu bar programs on macOS in three easy steps:
- Write a shell script
- Add it to SwiftBar
- ... there is no 3rd step!
You can get plugins from awesome [BitBar repository](https://github.com/matryer/bitbar-plugins), or in SwiftBar itself using the `Get Plugins...` menu item.
## How to get SwiftBar
Download from [GitHub Releases](https://github.com/swiftbar/SwiftBar/releases)
or Install with Homebrew
```
brew install swiftbar
```
Runs on macOS Monterey (12) and later.
## ...or build it from source
- Clone or download a copy of this repository
- Open `SwiftBar/SwiftBar.xcodeproj`
- Press play
## Plugin Repository
SwiftBar is bundled with a Plugin Repository. You can access it at Swiftbar → Get Plugins...
<p align="center">
<img width="600" alt="A screenshot of SwiftBar’s Plugin Repository" src="https://user-images.githubusercontent.com/222100/110520713-d5058000-80dc-11eb-9b15-baa09cb445bf.png">
</p>
If you want to add\remove plugin or have other questions about repository content please refer to this [issue](https://github.com/swiftbar/swiftbar-plugins/issues/1).
## Creating Plugins
To add a new plugin to SwiftBar, you need to create an executable script following the required format (see below) and put it into `Plugin Folder`.
### Plugin Folder
With the first launch, Swiftbar will ask you to set the `Plugin Folder`. SwiftBar will try to import every file in this folder as a plugin.
**Important**:
* hidden folders are ignored
* nested folders are traversed by SwiftBar, including symlinks
* `.swiftbarignore` file is supported, you can use it to exclude files from being imported as plugins.
You can hide a folder by prepending `.` or using this command `chflags hidden <folder name>`.
### Plugin Naming
Plugin files must adopt the following format:
```
{name}.{time}.{ext}
```
* **name** - Anything you want.
* **time** - Refresh interval (optional). Should be a number + duration modifier (see below)
* **ext** - File extension.
Duration modifiers:
* **ms** - milliseconds, e.g. 1ms - refresh every millisecond
* **s** - seconds, e.g. 1s - refresh every second
* **m** - minute, e.g. 10m - refresh every ten minutes
* **h** - hour, e.g. 3h - refresh every three hours
* **d** - day, e.g. 1d - refresh every day
Example filename: `date.1m.sh`
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
阅读完整原文
商业机会分析 规则生成(AI 未配置)
综合评分 44.9 分。该项目在“个人可实施性”维度得 40 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 SwiftBar 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| kdeldycke/meta-package-manager | 中文介绍暂未生成 🎁 snapshot every package on your machine to one file, restor |
627 | Python |
| matopeto/xcode-build-times | 中文介绍暂未生成 This SwiftBar/BitBar/xbar plugin shows the time you spend wa |
167 | PHP |
| rosenpin/i3-agenda | 中文介绍暂未生成 Show your next google calendar event in polybar, swiftbar, |
148 | Python |
| unixorn/lima-xbar-plugin | 中文介绍暂未生成 xbar/Swiftbar plugin to control lima-vm |
145 | Python |
| dennykim123/claude-codex-battery | 中文介绍暂未生成 macOS menu bar widget showing Claude Code & Codex usage limi |
104 | Swift |
| grzegorz-raczek-unit8/claude-quota | 中文介绍暂未生成 Menu bar gauges for Claude Code quota (SwiftBar plugin) |
73 | Python |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 60 个 Release |
| 社区活跃 | Star 4,780 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/swiftbar/SwiftBar.git cd SwiftBar # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。