No description
Find a file
Sindre Sorhus 2305947000 4.1.0
2020-02-21 17:46:07 +07:00
.github Enable the repo Sponsor button 2019-05-23 21:38:43 +07:00
Stuff Design a menu bar icon 2019-03-06 15:59:48 +07:00
Touch Bar Simulator Add "Padding" slider to control distance from edge while docked (#63) 2020-02-21 17:41:47 +07:00
Touch Bar Simulator.xcodeproj 4.1.0 2020-02-21 17:46:07 +07:00
.editorconfig Init 2017-03-16 01:25:20 +07:00
.gitattributes Rewrite the app 2018-09-25 14:52:09 +07:00
.gitignore Add build script 2017-03-28 01:01:09 +07:00
.swiftlint.yml Update dependencies 2019-10-25 13:00:56 +07:00
build Add build script 2017-03-28 01:01:09 +07:00
Cartfile Minor tweaks 2020-02-10 14:55:56 +07:00
Cartfile.resolved Minor tweaks 2020-02-10 14:55:56 +07:00
export-options.plist Add build script 2017-03-28 01:01:09 +07:00
license Meta tweaks 2018-02-27 15:28:50 +07:00
readme.md Add readme note about Catalina issue 2020-02-10 17:54:56 +07:00
screenshot-menu-bar.png 3.2.0 2019-07-04 22:37:11 +07:00
screenshot.png Various minor improvements 2017-03-21 11:40:14 +07:00

Touch Bar Simulator

Use the Touch Bar on any Mac

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.

Important: There is a problem with using this on Catalina. If you launch Xcode or relaunch Touch Bar Simulator, you will no longer be able to interact (click) with the Touch Bar view until you restart your computer. Which is not ideal. So if you want to use this reliably; don't launch Xcode and don't restart this app.

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

Or install it with Homebrew-Cask:

$ brew cask install touch-bar-simulator

Requires macOS 10.15 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 Preferences Security & Privacy 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?

You can set a shortcut to toggle the Touch Bar window using the included macOS Service.

tl;dr System PreferencesKeyboardShortcutsServicesToggle Touch Bar → add your shortcut.

Navigate to Keyboard in System Preferences, then click the Shortcuts tab and then Services in the list on the left. Scroll the list on the right down to the "General" section, then check the box beside "Toggle Touch Bar" and add your shortcut next to it.

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 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

./build

Maintainers