Switching apps on macOS in under 30 ms ⚡ Developer Bas Nijholt released macos-hotkey-app-switcher, an open-source hotkey app switcher for macOS that brings an app to the front in a median of 29 ms on his M2 MacBook, built end to end inside his open-source MindRoom agent platform. Nijholt had a MindRoom agent use the REA reverse-engineering tool with Ghidra on a copy of the Keyboard Maestro Engine binary to learn that Keyboard Maestro registers global hotkeys via Carbon's RegisterEventHotKey and activates apps with SetFrontProcessWithOptions, then replicated that mechanism in his tool, which reads its 14 hotkey bindings from a plain text file kept in his dotfiles. Nijholt said he replaced the paid Keyboard Maestro because its macros live in its own app rather than a reproducible text file. I have an extreme obsession with productivity, and I address it on the micro level. For example, I almost exclusively voice-dictate my interactions with AI I self-host the dictation https://www.nijho.lt/post/diction-agent-cli-qwen/ too . When my hands are on the keyboard, they’re on a Glove80 https://www.nijho.lt/post/glove80-split-ergonomic-keyboard/ , the nerdiest variant you can get, with all black keys. I also have a deep obsession with declarative tools. Whenever I set up a new VM, a computer at home, or a new MacBook, I want the entire process to be reproducible and fast. That ties in with my love for NixOS https://www.nijho.lt/post/proxmox-to-nixos/ , and it’s why my dotfiles https://www.nijho.lt/post/dotfiles/ are public. Keyboard Maestro didn’t fit that, so I replaced it. This post is about macos-hotkey-app-switcher https://github.com/basnijholt/macos-hotkey-app-switcher , which I believe to be one of the fastest and simplest hotkey app switchers for macOS. I built it end to end in MindRoom https://www.nijho.lt/post/mindroom/ , my open-source https://github.com/mindroom-ai/mindroom agent platform. It reads its hotkeys from a plain text file, and on my M2 MacBook it brings an app to the front in a median of 29 ms. Whenever I set up a new laptop, I run about four commands in the terminal. One installs my dotfiles https://github.com/basnijholt/dotfiles . One loads my GPG key, to decrypt my secrets, like SSH keys and such. One installs nix-darwin. And finally a Nix switch command, and everything is the way I want it to be. However, there were a couple of holdouts. One of them was Keyboard Maestro https://www.keyboardmaestro.com/ , which is a fantastic application. It’s paid, and I paid for it. But I almost exclusively used it to map keys on my keyboard to rapidly switch between apps. Its macros are made in its own app, not in a text file I can keep in my dotfiles. I’m a furious multitasker, so I have many things open at once. I don’t want to look like a mad person clicking Command-Tab https://www.nijho.lt/post/glove80-split-ergonomic-keyboard/ all the time to switch between apps. So what I have is one key. If I hold my Home key, which is under my pinky, plus another key like B , I go to the Brave browser. Home + T is my terminal. Home + M is the MindRoom app. My Glove80 firmware turns holding Home into Ctrl + Alt + Shift , and I have 14 of these bindings. The same ones live in my Hyprland config on Linux. Typically people suggest using an AppleScript like tell application "Brave Browser" to activate , or open -b