Hotkeys
All system-wide keyboard shortcuts for macOS are configured using built-in
functionality. These shortcuts are defined in
config.yaml
under the darwin_hotkeys{}
map, which follows this structure:
<system keycode>
:parameters
:<keyboard keys in ASCII>
enabled
:<true | false>
Here, <system keycode>
refers to the int
UID associated with a feature in
System Preferences → Keyboard → Shortcuts. For example, the keycode 64
corresponds to the "Show Spotlight search" shortcut.
Key Bindings¶
The following key bindings are currently in-use:
Key Combination | Action |
---|---|
Cmd+G | Show Spotlight search |
Cmd+Space | Select the next source in the input menu |
Note
The community.general.osx_defaults
Ansible collection does not yet
support
modifying system shortcuts. Therefore, ansible.builtin.command
is used
instead, which achieves the desired result but lacks idempotency.