← All projects

macOS app · Touch Bar

Sway Touch Bar.

My personal fork of Pock, with running apps, system controls and a customisable Touch Bar layout.

Sway Touch Bar

The project

SwiftAppKitObjective-CmacOSTailscale

Sway is my personal, open-source fork of Pock. I adapted the Touch Bar around the controls I use on my MacBook: running applications, volume, display and keyboard brightness, battery, date and time. The app lives in the menu bar.

I work in Swift and AppKit, with Objective-C bridges for the system controls. Elements can be shown, hidden and moved between the left, centre and right areas. The layout is saved on the Mac. A Tailscale button controls an existing local connection.

It is an experimental alpha. The project documents checks on a MacBook Pro M1 with a physical Touch Bar; other configurations remain unverified. Some controls rely on private macOS APIs, so system updates can affect them. The repository provides source code and build instructions. Pock’s original attribution and MIT licence are preserved.

The controls on my Touch Bar

Running apps sit on the left, date, battery and time in the centre, and system controls on the right. Tap and swipe adjust volume and brightness. Each group can be repositioned through the customisation window.

Sway running on the MacBook Pro Touch Bar, from the project’s README.
Sway running on the MacBook Pro Touch Bar, from the project’s README.

Useful links

Documentation and code

Documentation, guides and source code for the tools I used in this project.

Get in touch

Email me with a question about the project or to discuss similar work.

Ask me a question
Next projectRemove Background ↗︎