Giter VIP home page Giter VIP logo

energybar's Introduction

THIS PROJECT IS NOW ARCHIVED. SEE FORKS OF THIS PROJECT.


EnergyBar · Supercharge your Mac's Touch Bar


Icon by Georg Bednorz

EnergyBar replaces your Mac's Touch Bar with a collection of widgets, such as a Dock or a "Now Playing" widget. The goal of EnergyBar is to maximize the Touch Bar's usability, while minimizing some of its flaws such as inadvertent tapping.

Dock

The default placement of EnergyBar widgets allows for consistency and memorization of your Touch Bar use. The areas around the Esc key and above the Delete key have been kept non-functional to alleviate the problem of inadvertent tapping. At the same time EnergyBar allows for customization so that you only have your favorite widgets visible.

Widgets

Dock

Dock

  • Shows your applications, folders and trash can.
  • Tap items on the Dock to launch your applications or access your folders and trash can.
  • Alternatively click items on the Dock using your mouse. You can even drag files to it and it will do the right thing!
  • Hide the system Dock to regain valuable screen real estate.

Active App

ActiveApp

  • Shows the currently active app on your Mac.
  • This is a display widget that is also used to occupy space that is often tapped inadvertently.

Now Playing

NowPlaying

  • Shows the currently playing track and artist.
  • Can be configured to show the Active App on tap.
  • Can be configured to show the TODO widget on tap.
  • Long press to launch the current media player.

TODO

TODO

  • Shows the next TODO item from your reminders or calendar events.
  • Can be incorporated into the Now Playing widget to preserve space.
  • Long press to launch the Reminders or Calendar app.

Control

Control

  • Shows common keyboard controls: play/pause, brightness, volume, mute.
  • Press and hold the play/pause button to skip backward/forward.
  • Press and hold the brightness and volume buttons to change their value in one action.

Weather

Clock

  • Shows the current weather at your location (requires Location Services).
  • Uses Apple's private frameworks so you will get the same weather as the one in Notification Center.

Clock

Clock ClockBattery

  • Shows the current time and optionally the battery status.
  • Can be configured to show the weather on tap.
  • Long press to launch the EnergyBar Settings.
  • This is a display widget that is also used to occupy space that is often tapped inadvertently.

Touch Bar Customization

Customization

To customize your touch bar press the "Customize Touch Bar" button in the Energy Bar Settings. To open the Settings window simply double-click on the EnergyBar application in the Finder or long press on the Clock widget.

Developer Notes

The project source code is organized as follows:

How to add a Widget

Adding a widget is fairly simple:

  • Create a class named XxxxWidget that derives from NSCustomTouchBarItem or the convenience class CustomWidget. It is important that the class name ends in Widget.
  • Add the class name (without the Widget part) to -[AppBarController awakeFromNib].
  • Implement your widget.

energybar's People

Contributors

baptistecdr avatar billziss-gh avatar evanrobertson avatar pimms avatar tresni 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

energybar's Issues

Swipe & Fade Volume & Brightness Adjustments

As with normal TouchBar behavior, you should be able to adjust volume and brightness with one tap, instead of 3.

  • Tap & slide to adjust volume
  • Slider times out after inactivity and shows the regular Touch Bar screen (or tap anywhere on the TB).

versus, how it is now:

  • Tap Volume
  • Tap & Slide to adjust
  • Tap the X to close

Request : Time left on battery

Love your app, the only thing I miss from BTT is a way to quickly check how much time is left on battery. Is it possible to add something like this? Thanks

[Feature request] show minimized windows

Hi,

not sure if it is doable by any stretch but I am heavily relying on having minimized windows in my dock - is there any chance of displaying them as well? Having them in a similar fashion as showing the downloads folder would be perfect.

Thanks!

Better icons for battery display

In version v1.4 the ability to show the battery percentage in the clock widget has been added.

The display looks like this:

image

The display looks like this when charging:

image

The icons are not ideal and I would prefer it if a professional that understands macOS icons/symbols created new icons to better convey the meaning here. There are three icons, one for each possible battery state: draining, charging and charged.

The existing icon was created by combining the icon of the Clock and Energy Saver preference icons.

(Please note that any artwork contributed to this project would have to be made available under the project's license (GPLv3).)

weather widget not refreshing

Awesome energy bar!
small issue:
what's the refresh rate for the weather widget? for some reason I can't trigger a refresh and get only old weather result or none.

Homebrew Cask

I took the liberty of creating a cask in Homebrew for EnergyBar.app.

It's currently a pull request: Homebrew/homebrew-cask#52440

My first cask, so let's see how it goes. :)

Thanks for the useful app!

ESC not working to exit full screen chrome and firefox

No idea on this one but Chrome and Firefox seems to have an issue with ESC not working to exit full screen mode (works with safari).

Also trying to use fn + esc doesnt seem to work either so unsure if this is a energybar bug or a touchbar issue but keen to hear if anyone else has the same issue.

Weather widget doesn't work.

I can't see weather widget.
I did to enable location service. but Don't show touch bar.

macOS 10.14.6 location:Tokyo

スクリーンショット 2019-11-18 16 47 29

Request hide unhide energy bar

it will be great to be able to hide and unhide energy bar for people that uses quick actions for other programs like using the auto corrector in safari or the emojis . since when I have energy bar running I can't access does feature when using safari or other apps.

CPU/RAM/SWAP monitor

Hi,
An interesting and useful feature for power users would be a CPU/RAM/Swap monitoring graphic.

This could take the form of a compact bar chart with columns for CPU, RAM and Swap, optionally with numerical values. Pressing on the graphic could expand horizontally to show CPU usage per CPU

This would be similar to the information presented on the top rows of a linux 'top' command

Brightness does not work when using external screens

The brightness widget only works when my macbook is not connected to external screens. Not working meaning changing the slider does nothing to the macbook screen brightness. When running unconnected, it works as expected.

Play/Brightness/Volume Control does not appear / appears greyed out in editing mode

I've been having some issues with the Play/Brightness/Volume Control. It doesn't appear in normal mode and appears greyed out in editing mode. I can't remove it from the touch bar in editing mode.
I can add a new instance of Play/Brightness/Volume Control but the old one remains in the Touch Bar and uses up space in editing mode which leaves a lot of space once I finish editing mode.

Restarting EnergyBar/OSX or reinstalling EnergyBar has not helped unfortunately.

Feature Request: Custom Button

Is it Possible to implement a simple small Button where you can select a custom action. Like starting the Screen Saver or Skip song in music player.

I would be very happy about this feature :D

Scrolling of music/videos

I wonder if this good option of original Touch Bar can be implemented?

It can be cool, for example, if the quick tap on music widget can open the scrolling bar.

16-inch MacBook support

Using the 16-inch MacBook I have noticed a few issues:

  • The escape button/key is present
  • The now playing widget doesn't seem to work with Music
  • The Dock contains 5 document icons that are un-tappable
  • The image to the left of the Trash button

Touch Bar Shot 2019-12-17 at 01 41 28

EnergyBar v1.7
macOS v10.15.2 (19C57)

Album art for now playing

It would be awesome if the album art for the currently playing song showed up instead of the icon for Spotify.

Battery Icon

Would love to have a battery icon that provides the battery status of the device. Would provide more of an incentive to hide the Menu Bar for more screen real estate.

Install

It would be nice to get an HowTo for installation. Many thanks!

[idea] Disable touches while typing

As someone that sometimes accidentally hits the task bar icons when typing i'm wondering if its possible to have the touchbar icon touches disable while typing.

Did some digging but cant see too much on it either to do it via code or as part of OSX but thought it might be handy. Maybe a transparent overlay over the touchbar screen for 100ms after a keypress or something.

Make the default control panel editable

Currently the default "Control" bar is fixed for play, brightness, sound, mute. It would be nice if we could add / subtract individual portions like the default Touch Bar. For example, if we wanted to have just the brightness and volume sliders but not the mute and play buttons. Or to add the nightshift / DND buttons, etc. Thanks!

Trash should be optional

The Trash cann should be optional. Id rather have a skip button next to the play pause than the trash.

Also if you tap on the now playing it should open that app

Escape key in game

Hey, I just have a quick question on the escape key for energybar. First off excellent work! I love this so much, but when I'm playing a game, in this case terraria yesterday, the escape key on the energybar doesn't register ingame. So I had to quit to use the system esc key. Is this a known issue? If not I hope it can somehow be fixed :D
Thanks

play streaming video button doesn't work

image
This button doesn't work on any streaming videos. I have tested music, youtube and live streaming, but the play button does no influence on them.

My macos version is 10.15.2

Minimized Windows Widget

When the user hides the TouchBar with EB, minimized windows can no longer be accessed. It'd be great if there was a widget for those.

Option to highlight active app

Hi,

Thanks for creating this, amazing utility! I was wondering if a good feature would be an option to highlight active app in the dock. Currently one can add the active app widget, but that takes up space which can be used for other widgets. How about an option to highlight the currently active app on the dock icons itself (for example, with a gray background)?

Thanks

Feature Request: Default to showing the dock when it is hidden in clamshell mode

Many users like myself use their machines as a desktop replacement as well as a portable. It would be nice to see an option when the machine is on battery power, and the user goes to the advance page and chooses to hide the dock, a tick box below that option appears which is titled something like "Automatically switch this setting depending on wether the machine is woken or started in clamshell mode". A simple description of this toggle could be "This option automatically toggles the "Show/Hide" dock feature depending on wether you have the lid open or closed while using the machine, for example, when using an external display with the lid closed"

Ticking the option would cause Energybar to do a check when the machine is booted or woken to see if the lid is closed, and an external display is connected. If so it automatically displays the dock. If the lid is open, it hides the dock, as usually the user is using both of the screens and the internal keyboard, or simply using it as a laptop away from their external monitor. It would not switch the dock back off until it senses the machine is opened with no external gpu or display connected.

I love the app, and a simple command space, and typing en + enter will bring up the energy bar app to change the setting without having to open the lid when I come home and connect it to my egpu, but it seems like a good feature to have for desktop users who often take their notebooks with them to other rooms, or away from home.

Escape key does not work

Example: When having spotlight opened, pressing esc does not exit spotlight. Not limited to this scenario.

"Now playing" widget doesn't react to taps

Thanks for the nice Touch Bar solution!

Everything works except "now playing" widget. It does pause/play, but it doesn't react to taps. Do you know what can be the reason?

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.