Simple Hotkey Daemon for macOS, Ported to Zig
a day ago
- #macOS
- #Zig
- #hotkey-daemon
- skhd.zig is a hotkey daemon for macOS, ported from skhd to Zig, maintaining compatibility with original skhd configuration files.
- New features include process groups, command definitions (.define), key forwarding/remapping, and improved error reporting.
- Installation options include Homebrew, direct download for specific architectures, or building from source with Zig.
- Service management commands allow for easy startup, status checks, and stopping of the skhd service.
- Features include event capturing, hotkey mapping, process-specific bindings, modal systems, and comprehensive error reporting.
- Configuration syntax is fully compatible with original skhd, with additional directives for shell customization, blacklisting, and loading additional config files.
- Advanced features include left/right modifier distinction, special key support, passthrough mode, and config includes.
- Debugging and profiling options vary by build mode (Debug, ReleaseSafe, ReleaseFast, ReleaseSmall), with ReleaseFast optimized for daily use.
- Example configurations demonstrate basic hotkey mappings, application-specific commands, window management modes, and reusable command definitions.
- Performance optimizations ensure low-latency hotkey processing, with allocation-free event loops in release builds.