Last active
March 8, 2025 08:53
-
-
Save maurofaccenda/aca92d695220e545c5e7ffd28dc365c4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
hs.hotkey.bind({}, "§", function() hs.eventtap.keyStroke({}, "`") end ) | |
hs.hotkey.bind({ "cmd" }, "§", function() hs.eventtap.keyStroke({ "cmd" }, "`") end ) | |
hs.hotkey.bind({ "shift" }, "§", function() hs.eventtap.keyStroke({ "shift" }, "`") end ) | |
hs.hotkey.bind({ "cmd", "shift" }, "§", function() hs.eventtap.keyStroke({ "cmd", "shift" }, "`") end ) |
$ hidutil property --set '{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc": 0x700000064, "HIDKeyboardModifierMappingDst": 0x700000035}]}'
Attempt to remap alphanumerics / special characters. If setting fails, ensure Terminal has input monitoring permissions.
Add Terminal
to your settings : https://support.apple.com/guide/mac-help/control-access-to-input-monitoring-on-mac-mchl4cedafb6/mac
My current MacBook has the American keyboard layout, so I don't need this anymore, however, it is important to keep this updated for those who need it.
Thank you @ghigt and @VojtechVitek. I updated the first comment to reflect your findings.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@VojtechVitek
hdutil
shouldn't needsudo
after MacOS 15.2 update any more. Did you try without?