Skip to content

Instantly share code, notes, and snippets.

@a-voronov
Created February 7, 2024 11:00
Show Gist options
  • Save a-voronov/7049bbde5c3c3446328da3e05b8ec49b to your computer and use it in GitHub Desktop.
Save a-voronov/7049bbde5c3c3446328da3e05b8ec49b to your computer and use it in GitHub Desktop.
remap Finnish keyboard to US layout
sudo hidutil property --set '{ "UserKeyMapping": [ { "HIDKeyboardModifierMappingSrc": 0x700000064, "HIDKeyboardModifierMappingDst": 0x700000035 }, { "HIDKeyboardModifierMappingSrc": 0x700000035, "HIDKeyboardModifierMappingDst": 0x7000000E1 } ] }'
@a-voronov
Copy link
Author

What

Remaps following keys:

MK2A3S

Instructions

  • put file somewhere easy to access, i.e. ~/
  • make it executable chmod +x .remap
  • add it to the login items
    Screenshot 2024-02-07 at 1 03 33 PM

Note

macOS Sonoma starting 14.3 requires the command to be run as super user to take effect, hence sudo in the beginning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment