Tell us what works and what could be better. We read every submission.
@akhar·2 public vizzes
This JSON file defines a Karabiner-Elements complex modification rule that switches keyboard input languages without a modal state. It uses the `select_input_source` API to map right Command + Space to Russian and left Command + Space to English, while a second rule repurposes taps on the Command keys themselves via `to_if_alone`. The configuration relies on Karabiner’s `manipulators` array, specifying mandatory and optional modifiers, to trigger language changes only under precise key-combination conditions.
This example demonstrates a keyboard remapping configuration for Karabiner-Elements, showing how left and right Shift keys can be repurposed to type parentheses when tapped alone. The JSON rules assign a tap on left Shift to produce an opening parenthesis (`9` with left Shift) and a tap on right Shift to produce a closing parenthesis (`0` with left Shift), while preserving the original Shift behavior when held with other keys. It uses Karabiner-Elements' `manipulators` API with `to_if_alone` conditions to distinguish taps from holds, and includes optional modifier handling to work alongside existing shortcuts.