Last active
October 26, 2023 08:17
-
-
Save adriandmitroca/9f73dce60d37860fc2c39612f401c389 to your computer and use it in GitHub Desktop.
Fix right command / right alt on MX Keys not for Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# touch ~/mx-keys-remap.sh | |
#!/usr/bin/env bash | |
hidutil property --set '{"UserKeyMapping": | |
[{"HIDKeyboardModifierMappingSrc":0x7000000e7, | |
"HIDKeyboardModifierMappingDst":0x7000000e6}] | |
}' | |
# chmod +x ~/mx-keys-remap.sh | |
# Autostart below doesn't work on latest macOS Ventura. You need to run the script after every reboot. | |
# sudo defaults write com.apple.loginwindow LoginHook /Users/USERNAME/mx-keys-remap.sh | |
# ~/.mx-keys-remap.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment