Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/touch-bar-simulator
Use the Touch Bar on any Mac
https://github.com/sindresorhus/touch-bar-simulator
app macbook-pro macos simulator swift touch-bar
Last synced: about 1 month ago
JSON representation
Use the Touch Bar on any Mac
- Host: GitHub
- URL: https://github.com/sindresorhus/touch-bar-simulator
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2017-03-15T18:25:37.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T16:54:05.000Z (8 months ago)
- Last Synced: 2024-04-14T09:56:15.551Z (7 months ago)
- Topics: app, macbook-pro, macos, simulator, swift, touch-bar
- Language: Swift
- Homepage: https://sindresorhus.com/touch-bar-simulator
- Size: 21.7 MB
- Stars: 1,892
- Watchers: 42
- Forks: 86
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-starred-test - sindresorhus/touch-bar-simulator - Use the Touch Bar on any Mac (Swift)
- open-source-mac-os-apps - Touch Bar Simulator - Use the Touch Bar on any Mac. ![swift_icon] (Applications / Touch Bar)
- Mac-Menubar-Megalist - Touch Bar Simulator
- open-source-mac-os-apps - Touch Bar Simulator - Use the Touch Bar on any Mac. ![swift_icon] (Applications / Touch Bar)
- starred-awesome - touch-bar-simulator - Use the Touch Bar on any Mac (Swift)
- awesome-swift-macos-apps - Touch Bar Simulator - Use the Touch Bar on any Mac. (Touch Bar / Text)
- awesome-swift-macos-apps - Touch Bar Simulator - Use the Touch Bar on any Mac. (Touch Bar / Text)
README
# Touch Bar Simulator [](https://github.com/sindresorhus/touch-bar-simulator/releases/latest)
> Use the Touch Bar on any Mac
> [!WARNING]
> This app is discontinued as it no longer works because of changes in macOS.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 menu bar icon and system service to toggle the Touch Bar with a click or keyboard shortcut.
Clicking the menu bar icon toggles the Touch Bar window.
Right-clicking or option-clicking the menu bar icon displays a menu with options to dock the window to the top or bottom of the screen, make it show on all desktops at once, access toolbar features in docked mode, automatically show and hide the Touch Bar, or quit the app.
## Getting started
#### [Download the latest release](https://github.com/sindresorhus/touch-bar-simulator/releases/latest)
Or install it with [Homebrew-Cask](https://caskroom.github.io):
```sh
brew install touch-bar-simulator
```*Requires macOS 12 or later.*
## Screenshot
You can capture a screenshot of the Touch Bar by either:
1. Clicking the screenshot button in the Touch Bar window or options menu which saves it to `~/Desktop`.
2. Pressing ⇧⌘6 which saves it to `~/Desktop`.
3. Pressing ⌃⇧⌘6 which saves it to the clipboard.## FAQ
### Clicking in the simulator window is not working
Go to “System Settings › Privacy & Security › Accessibility“ and ensure “Touch Bar Simulator.app“ is checked. If it's already checked, try unchecking and checking it again.
### Why is this not on the App Store?
Apple would never allow it as it uses private APIs.
### Can I set a keyboard shortcut?
Right-click or option-click the menu bar icon, select “Keyboard Shortcuts…”, and add your shortcut.
### Can I contribute localizations?
No, we're not interested in localizing the app.
### How does this work?
~~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.~~
Xcode 10 moved the required private symbols needed to trigger the Touch Bar simulator into the main IDEKit framework, which has a lot of dependencies on its own. I managed to get it working by including all those frameworks, but the app ended up being 700 MB... I then went back to the drawing board. I discovered a way to communicate with the Touch Bar simulator directly. The result of this is a faster and more stable app.
## Build
```sh
./build
```