All Projects → richinfante → shbar

richinfante / shbar

Licence: MIT license
Shell Scripting + Jobs in your macOS Menu Bar!

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to shbar

chai
Don't let your Mac fall asleep, like a sir
Stars: ✭ 54 (+86.21%)
Mutual labels:  macos-menubar
reminders-menubar
Simple macOS menu bar application to view and interact with reminders. Developed with SwiftUI and using Apple Reminders as a source.
Stars: ✭ 250 (+762.07%)
Mutual labels:  macos-menubar
macOS-PiholeShortcuts
Manage and monitor your Pi-hole® instance through your status bar
Stars: ✭ 43 (+48.28%)
Mutual labels:  macos-menubar
osx-statusbar-countdown
⏳📅 A utility to count down to a date from your macOS menubar, written in Swift
Stars: ✭ 40 (+37.93%)
Mutual labels:  macos-menubar
KubeSwitch
MacOS Status Bar App to switch between kubernetes contexts
Stars: ✭ 49 (+68.97%)
Mutual labels:  macos-menubar
airqmon
A macOS menu bar application that displays live air quality data from the nearest sensor station.
Stars: ✭ 86 (+196.55%)
Mutual labels:  macos-menubar
Ambar-Xamarin
A macOS Menu Bar app built with Xamarin and C#
Stars: ✭ 63 (+117.24%)
Mutual labels:  macos-menubar

shbar

Shell Scripting + Jobs in your macOS Menu Bar!

warning: this is alpha quality software. Use at your own risk.

example screenshot

Known Issues

  • Killing the shbar app does not kill child procesess, on restart new ones are created.

Install

  1. Grab the latest release here
  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:

[
  {
    "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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].