touch-bar-simulator/readme.md

75 lines
2.4 KiB
Markdown
Raw Normal View History

2017-03-16 04:07:37 +00:00
# Touch Bar Simulator [<img src="Stuff/Icon-readme.png" width="160" align="right">](https://github.com/sindresorhus/touch-bar-simulator/releases/latest)
2017-03-15 18:25:20 +00:00
2017-04-28 07:19:39 +00:00
> Use the Touch Bar on any Mac
2017-03-15 18:25:20 +00:00
Launch the Touch Bar simulator from anywhere without needing to have Xcode installed, whereas Apple requires you to launch it from inside Xcode. It also comes with a handy transparency slider, a screenshot button, and a service to toggle the Touch Bar in the Services menu or with a keyboard shortcut.
You can add a shortcut in `System Preferences``Keyboard``Shortcuts``Services``Toggle Touch Bar`.
2017-03-15 18:25:20 +00:00
2017-05-25 16:42:27 +00:00
**[Website](https://sindresorhus.com/touch-bar-simulator/)** &nbsp;&nbsp; **[Discuss it on Product Hunt](https://www.producthunt.com/posts/touch-bar-simulator)**
2017-03-15 18:25:20 +00:00
<img src="screenshot.png" width="1129">
*Check out my other [macOS apps](https://sindresorhus.com/#apps)*
2017-03-15 18:25:20 +00:00
2018-03-29 18:09:29 +00:00
<a href="https://www.patreon.com/sindresorhus">
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
</a>
2017-03-15 18:25:20 +00:00
2017-05-04 03:16:30 +00:00
## Getting started
2017-03-15 18:25:20 +00:00
2017-05-25 16:42:27 +00:00
#### [Download the latest release](https://sindresorhus.com/touch-bar-simulator)
2017-03-15 18:25:20 +00:00
2017-05-04 03:16:30 +00:00
---
2017-05-04 03:16:30 +00:00
Or install it with [Homebrew-Cask](https://caskroom.github.io):
```
$ brew update && brew cask install touch-bar-simulator
```
*Requires macOS 10.13 or later.*
2017-03-15 18:25:20 +00:00
## Screenshot
2017-03-15 18:47:56 +00:00
You can capture a screenshot of the Touch Bar by either:
1. Clicking the screenshot button in the Touch Bar window which saves it to `~/Desktop`.
2. Pressing ⇧⌘6 which saves it to `~/Desktop`.
3. Pressing ⌃⇧⌘6 which saves it to the clipboard.
2017-03-15 18:25:20 +00:00
## FAQ
### How is this better than [TouchBarLauncher](https://github.com/zats/TouchBarLauncher)?
- Doesn't require Xcode
- Signed binary
2017-03-21 04:38:33 +00:00
- Transparency slider
2017-03-15 18:25:20 +00:00
- Screenshot button
- Doesn't steal focus when launched
- Doesn't take up space in the Dock or app switcher
2017-03-15 18:47:56 +00:00
### Why is this not on the App Store?
Apple would never allow it as it uses private APIs.
### How does this work?
2017-03-15 19:48:04 +00:00
In short, it exposes the Touch Bar simulator from inside Xcode as a standalone app with added features. I [class-dumped](https://github.com/nygard/class-dump) a private Xcode framework and used that to expose a private class to get a reference to the Touch Bar window controller. I then launch that window and add a screenshot button to it. I've bundled the required private frameworks to make it work without Xcode. That's why the binary is so big.
2017-03-15 18:47:56 +00:00
2017-03-15 18:25:20 +00:00
2017-03-27 18:01:09 +00:00
## Build
```
./build
```
2017-03-15 18:25:20 +00:00
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)