whkd is a lightweight Windows hotkey daemon written in Rust for executing commands through customizable keyboard shortcuts. Inspired by skhd and sxhkd, it uses a plain-text configuration file to associate keyboard input combinations with shell commands. Users can define global shortcuts or application-specific actions based on the active process. Default commands provide fallback behavior when no application-specific binding applies. Individual applications can also be excluded from particular shortcuts. A configurable pause shortcut temporarily disables other bindings, while optional pause hooks execute additional commands. Supported shells include Command Prompt, PowerShell, and PowerShell Core. whkd integrates particularly well with the komorebi tiling window manager.
Features
- Customizable system-wide keyboard shortcuts for executing shell commands and automating Windows desktop operations
- Plain-text whkdrc configuration with intuitive syntax inspired by skhd and sxhkd hotkey daemons
- Application-specific keyboard bindings with conditional command execution based on the active process
- Configurable default actions and application exclusions for controlling shortcut behavior across different programs
- Global hotkey suspension with customizable pause shortcuts and optional shell command execution hooks
- Command Prompt, PowerShell, and PowerShell Core compatibility with dedicated komorebi window management integration