Giter Site home page Giter Site logo

brew-services-menubar's Introduction

brew-services-menubar

An OS X menu item for starting and stopping homebrew services.

This reads the homebrew services command, showing you the status of your services and allowing them to be started, stopped and restarted.

Screenshot

Install

Using Homebrew Cask

brew install --cask brewservicesmenubar

Manually

Download from the Releases page.

⚠️ You'll see a warning "BrewServicesMenubar" can't be opened because Apple cannot check it for malicious software. This is because I haven't paid Apple for a developer account.

More info about this malicious software warning.

Autostart

The program doesn't have an option to autostart itself, so you may want to open System Preferences -> Users & Groups -> Login Items and add the application to the list to have it start when you log in.

Usage

  • Start a specific service by clicking its name
  • Stop a specific running service (indicated with a tick) by clicking its name
  • Hold the Option key to allow a single service to be restarted

Configuration

By default looks for Homebrew at /usr/local/bin/brew and /opt/Homebrew/bin/brew. If this not correct for your setup, you can customize it using:

defaults write andrewnicolaou.BrewServicesMenubar brewExecutable /usr/local/bin/brew

Contributors

License

Icon is Beer by Enemen from the Noun Project.

brew-services-menubar's People

Contributors

andrewn avatar gordolio avatar stefansundin avatar ytarfa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brew-services-menubar's Issues

Project Icons

I love this tool. I think the menu bar could be improved by adding icons to each of the services that correspond to the project logo. I think this could greatly enhance the usability of the menu bar. If you have many items in the menu bar, it becomes easier/quicker to find the one you want by the icon.

For example, brew info --json mariadb has the homepage https://mariadb.org/. The homepage has a <link rel="icon"> tags with sizes 32x32 and 192x192. The smaller one could be retrieved and displayed in menu.

Another example, brew info --json nginx has the homepage: https://nginx.org/. There isn't a link tag in this one, but there is a /favicon.ico file that could be retrieved as a fallback.

For the cases where the icon could not automatically be retrieved, it may be possible to submit a PR to homebrew that allows an icon url to be included in the formula directly.

Application icon is hard to spot in Launchpad

I think the new background in macOS 10.15 may have made it harder to spot the app in the launchpad.

launchpad

I wonder if we can update the icon to be more visible. Maybe make the beer foam yellow or something.

The system icon still looks great though, so that doesn't need to be changed.

Show services with "error" status

Context

Sometimes brew services reports a status of "error":

$ brew services list
Name       Status  User   Plist
postgresql error   andrew /Users/andrew/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
redis      started andrew /Users/andrew/Library/LaunchAgents/homebrew.mxcl.redis.plist

What happens

The service is marked as disabled in the menu.

What should happen

We should show an error state and allow the service to be restarted, started or stopped.

Services started by sudo

Please add support to manage services started by super user.
Currently this services are disabled. I think a good idea ask user to enter sudo password.

screenshot 2018-05-22 19 44 51

UI Style

Hello,

first of all I wanted to congratulate you for the idea, genius!

You can add an icon would be monochromatic black or white? At this time the colored icon is in conflict with the system tray.

Install with brew cask

Hi there.

I added your program to Homebrew cask, so it's super easy to install for all Homebrew users (which should be all of your users 😄). See Homebrew/homebrew-cask#45612

Now you can install with:

brew cask install brewservicesmenubar

You might want to add it to the README. That's all I came here to say. Have a nice day!

Any way to hide certain services?

I just wanted to check to see if there was a way to hide services from the menubar. Services are showing up dependences of things, or old versions of things - both of which I never use / turn on and off.

Doesn't work on Catalina

Menu shows up in the menu bar but no services are shown. This is 3.0.0 from Homebrew on Catalina 10.15.5

Menu can contain duplicate items when updating

The general behavior is reproducible just by starting and stopping services but the results are not always the same. In one instance the "Quit" menu item was in the first position until the menu finished updating.

Screen Shot 2021-05-16 at 20 48 07

The app sometimes crashes when I do "Stop all"

Hi,

I am using macOS Sonoma (14.2.1 (23C71)) on an M1 Pro MacBook and the latest version of this app, installed today.

Firstly, thanks to all the contributors for it! It is very useful and exactly what I need.

Starting all the services for me works:

Screenshot 2024-01-12 at 16 27 41

But when I use "stop all", the app sometimes crashes without any error message.

I had this problem 2 or 3 times but when I am trying to reproduce it now, I can't... 😅 Good for me, I guess.

But still reporting it, maybe more people with this problem with show up and share some more helpful troubleshooting info.

Persist in menu bar

Hello,
will the icon re-appear in the menu bar after restart or do you need to launch it each time?
Any configuration to opt in/out?

Apple M1

On Apple M1 computers, Homebrew changed its path (see https://docs.brew.sh/Installation).

Therefore, this program just says "No services available" and doesn't work out of the box.

To fix it you can run:

defaults write andrewnicolaou.BrewServicesMenubar brewExecutable /opt/homebrew/bin/brew

The code should be updated to detect this case. I was thinking about doing it but I would have to install Xcode and I am not sure I want to do that just yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.