https://github.com/a2/touch-baer
Use private API to add a Touch Bar buttons to the Control Strip.
https://github.com/a2/touch-baer
control-strip objective-c touch-bar
Last synced: 11 months ago
JSON representation
Use private API to add a Touch Bar buttons to the Control Strip.
- Host: GitHub
- URL: https://github.com/a2/touch-baer
- Owner: a2
- License: mit
- Created: 2017-02-13T18:22:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-16T14:17:07.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T21:21:24.984Z (about 1 year ago)
- Topics: control-strip, objective-c, touch-bar
- Language: Objective-C
- Homepage:
- Size: 43.9 KB
- Stars: 236
- Watchers: 5
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Touch Bär

Touch Bär uses **undocumented, private API** to add a Touch Bar button to the Control Strip on the right-band side of the keyboard.
```objc
DFRElementSetControlStripPresenceForIdentifier(NSString *, BOOL);
DFRSystemModalShowsCloseBoxWhenFrontMost(BOOL);
+[NSTouchBarItem addSystemTrayItem:]
+[NSTouchBar presentSystemModalFunctionBar:systemTrayItemIdentifier:]
```
## Author
Alexsander Akers, me@a2.io
## License
Touch Bär is available under the MIT license. See the LICENSE file for more info.