Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbonamy/EnergyBar
Supercharge your Mac's Touch Bar.
https://github.com/nbonamy/EnergyBar
Last synced: 10 days ago
JSON representation
Supercharge your Mac's Touch Bar.
- Host: GitHub
- URL: https://github.com/nbonamy/EnergyBar
- Owner: nbonamy
- License: gpl-3.0
- Fork: true (billziss-gh/EnergyBar)
- Created: 2020-09-26T04:29:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-05T14:33:38.000Z (over 1 year ago)
- Last Synced: 2024-08-02T15:54:45.361Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 9.14 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
EnergyBar · Supercharge your Mac's Touch Bar
Icon by Georg BednorzEnergyBar 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](doc/EnergyBarAnimation.gif)
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](doc/Dock.png)
- 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](doc/ActiveApp.png)
- 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](doc/NowPlaying.png)
- 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](doc/Todo.png)
- 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](doc/Control.png)
- 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](doc/Weather.png)
- 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](doc/Clock.png)
![ClockBattery](doc/ClockBattery.png)- 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](doc/Customization.png)
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](build/Xcode): Xcode workspace
* :file_folder: [rsc](rsc): project resources
* :file_folder: [src](src): project sources
* :file_folder: [src/System](src/System): macOS system sources
* :file_folder: [src/Widgets](src/Widgets): widget 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.