niw/HapticKey

Objective-C
macOS

A simple utility application to trigger haptic feedback when tapping Touch Bar.

macostouchbarobjective-c
Star 增长趋势
Star
1.7k
Forks
63
周增长
+0
Issues
17
5001k1.5k
2017年12月2020年11月2023年10月2026年9月
README

HapticKey

HapticKey is a simple utility application for MacBook with Touch Bar that triggers a haptic feedback when tapping Touch Bar.

HapticKey

Since Touch Bar is just a flat panel, there is no feedback other than a visual change of the key displayed, it is terribly uncomfortable especially when tapping ESC key, like while using Vim.

By adding a haptic feedback, which is vibrating a trackpad not Touch Bar itself, it helps to improve the usage of Touch Bar. It is also optionally playing a sound effect or flashing the screen like a visual bell on a terminal.

Usage

Download the latest pre-built application binary from Releases page. Note that these pre-built application binaries are not signed so you need to allow to execute it on Security & Privacy settings pane in System Preferences.

Also, the application may ask a permission to use Accessibility, as like the other applications that are listening system events.

Build

To build the application from the source code, you need to use the latest version of Xcode.

Simply use make to install all dependencies, build application binary, then archive it in build/HapticKey.xcarchive/Products/.

$ make

Development

You can simply open HapticKey.xcodeproj to start development of the application.

Overviews

This application is using CGEventTap to listen key down and up or tap events on Touch Bar.

It triggers haptic feedbacks by using private APIs in MultitouchSupport.framework when the event meets the conditions.

Currently, the application is listening either ESC and F1, F2, etc. keys or tap events on Touch Bar. You can implement your own HTKEventListener to extend the application to trigger feedbacks on arbitrary events.

相关仓库
flutter/flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond

DartlibraryBSD 3-Clause "New" or "Revised" Licensemobileandroid
flutter.dev
178.9k31.1k
jlevy/the-art-of-command-line

Master the command line, in one page

tutorialbashunix
162.3k14.8k
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Rustcrates.ioappGNU Affero General Public License v3.0remote-controlremote-desktop
rustdesk.com
123k18.9k
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

JavaScriptnpmOthernodejsjavascript
nodejs.org
121.2k36.7k
jaywcjlove/awesome-mac

 This project is dedicated to collecting high-quality macOS software and organizing them systematically by different categories for easy search and use.

SwiftawesomeCreative Commons Zero v1.0 Universalmacossoftware
git.io/macx
113.4k8.8k
tw93/Mole

🐹 Clean, uninstall, analyze, optimize, and monitor your Mac. Free open-source CLI, plus a native Mac app.

ShellcliGNU General Public License v3.0cleancleaner
mole.fit
66.7k2.3k
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

Rustcrates.iocliApache License 2.0terminal-emulatorsopengl
alacritty.org
65.7k3.6k
warpdotdev/warp

Warp is an agentic development environment, born out of the terminal.

Rustcrates.iocliGNU Affero General Public License v3.0rustlinux
warp.dev
64.9k5.5k
warpdotdev/Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.

cliOtherrustlinux
warp.dev
64.7k5.5k
tldr-pages/tldr

Collaborative cheatsheets for console commands 📚.

MarkdowntutorialOthershellman-page
tldr.sh
63.6k5.4k
tw93/Pake

🤱🏻 Turn any webpage into a desktop app with one command.

Rustcrates.iolibraryGNU General Public License v3.0rusttauri
61.4k12.6k
marktext/marktext

📝A simple and elegant markdown editor, available for Linux, macOS and Windows.

TypeScriptnpmappMIT Licensemacostypewriter-mode
marktext.me
61.2k4.5k