Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richinfante/shbar
Shell Scripting + Jobs in your macOS Menu Bar!
https://github.com/richinfante/shbar
macos macos-menubar
Last synced: about 2 months ago
JSON representation
Shell Scripting + Jobs in your macOS Menu Bar!
- Host: GitHub
- URL: https://github.com/richinfante/shbar
- Owner: richinfante
- License: mit
- Created: 2019-02-15T13:49:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T00:27:32.000Z (over 5 years ago)
- Last Synced: 2024-11-16T04:32:14.737Z (about 2 months ago)
- Topics: macos, macos-menubar
- Language: Swift
- Size: 943 KB
- Stars: 37
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- Mac-Menubar-Megalist - shbar
README
# shbar
Shell Scripting + Jobs in your macOS Menu Bar!_warning: this is alpha quality software. Use at your own risk._
![example screenshot](screenshots/demo.png)
## Known Issues
- Killing the shbar app does not kill child procesess, on restart new ones are created.## Install
1. Grab the latest release [here](https://github.com/richinfante/shbar/releases)
2. Download and place unzipped `.app` file into `/Applications`## Setup
In a file named `~/.config/shbar/shbar.json`, add a file using the following structure:```json
[
{
"titleRefreshInterval" : 120,
"mode" : "RefreshingItem",
"title" : "IP Address",
"actionScript" : {
"bin" : "\/bin\/sh",
"args" : [
"-c",
"open https:\/\/api.ipify.org"
],
"env" : {
"PATH" : "\/usr\/bin:\/usr\/local\/bin:\/sbin:\/bin"
}
},
"titleScript" : {
"bin" : "\/bin\/sh",
"args" : [
"-c",
"echo $(curl https:\/\/api.ipify.org) | tr '\n' ' '"
],
"env" : {
"PATH" : "\/usr\/bin:\/usr\/local\/bin:\/sbin:\/bin"
}
}
},
{
"reloadJob" : false,
"autostartJob" : false,
"title" : "~:$",
"actionShowsConsole" : false,
"mode" : "RefreshingItem",
"children" : [
{
"autostartJob" : false,
"mode" : "RefreshingItem",
"title" : "Setup Help",
"actionScript" : {
"bin" : "\/bin\/sh",
"args" : [
"-c",
"open https:\/\/github.com\/richinfante\/shbar"
],
"env" : {
"PATH" : "\/usr\/bin:\/usr\/local\/bin:\/sbin:\/bin"
}
},
"children" : [],
"actionShowsConsole" : false,
"reloadJob" : false
},
{
"shortcutKey" : "q",
"autostartJob" : false,
"mode" : "ApplicationQuit",
"title" : "Quit",
"actionShowsConsole" : false,
"reloadJob" : false
}
]
}
]```
## Logging
Shbar places logfiles for each process here: `~/Library/Logs/shbar/`. It does not automatically remove the logfiles, but will in a future release.