EnergyBar

Supercharge your Mac's Touch Bar.

Github星跟踪图

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:

  • :file_folder: build/Xcode: Xcode workspace
  • :file_folder: rsc: project resources
  • :file_folder: src: project sources

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.

主要指标

概览
名称与所有者billziss-gh/EnergyBar
主编程语言Objective-C
编程语言Objective-C (语言数: 3)
平台
许可证GNU General Public License v3.0
所有者活动
创建于2018-08-13 07:04:12
推送于2021-09-17 08:51:06
最后一次提交2021-09-17 09:51:06
发布数11
最新版本名称v1.7 (发布于 2019-11-17 22:55:15)
第一版名称v0.9 (发布于 2018-08-19 23:55:26)
用户参与
星数750
关注者数20
派生数34
提交数363
已启用问题?
问题数57
打开的问题数32
拉请求数4
打开的拉请求数5
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?