My config for Hammerspoon. For those that don't know, Hammerspoon is a Mac util that let's you write Lua scripts to control your system.
I'm using it with an MX Ergo and a custom keyboard to gain back functionality I lost from moving away from an Apple hardware.
To install, clone into ~/.hammerspoon
git clone https://github.com/mikewudev/hammerspoon-config ~/.hammerspoon
Switching to a trackball like the MX Ergo, and losing the Magic Mouse's scroll was a big deal for me. This gives me multi-directional scroll back.
Logicool Options allowed my MX Ergo to have programmable buttons. I found it slow and it couldn't do everything I wanted. This let's me ditch Logicool, and allows me to program dynamic app-aware actions.
Example: Mouse Button 4 does cmd + ]
in every app, but cmd + ctrl + ->
in XCode.
Wish you could control your mac media keys (play/pause, volume, brightness) using an external keyboard? Use this.
I was previously using Karabiner Elements, which is a terrific app that's more user-friendly than Hammerspoon. Unforunately recent updates have produced a consistent key-stuck issue for my keyboard.
Let's you bind shortcuts in any app. Some shortcut examples:
- launch/activate an app
- map numbers to F keys
- Launch spoons (hammerspoon modules)
- Execute an apple script. I use it to start work by launching a vm, ssh etc.
Inspired by QMK's tap-dance feature, tap shift for ()
- Hold = shift
- 1 tap = (
- 2 taps = {
- 3 taps = [
Whenever I connected my airpods, the bluetooth on my keyboard and airpods would stutter. After reading the mac will automatically switch to the airpod's mic, I copied this script to disable auto-input switching.
- Popup translation