Hotkeys¶
All "system-wide" keyboard shortcuts for macOS are bound using builtin
functionality. The shortcuts are set in
config.yaml
as a darwin_hotkeys
map that has the following structure:
<system keycode>
:- parameters:
<keyboard keys in ascii>
- enabled:
<boolean that indicates whether shortcut is enabled>
- parameters:
Where <system keycode>
is the int
UID for the feature in System Preferences
- Keyboard - Shortcuts, e.g.: "Show Spotlight search" corresponds to 64
.
Key Bindings¶
The following keybindings are available:
Key Combination | Action |
---|---|
Cmd+G | Show Spotlight search. |
Cmd+Space | Select the next source in input menu. |
Note
community.general.osx_defaults
Ansible collection does not
support
modifying system shortcuts yet. This is why I use ansible.builtin.command
to accomplish the desired result, which is not idempotent.