-
macOS (Intel or Apple Silicon)
-
Xcode Command Line Tools
- Run the following if you don't already have the Xcode Command Line Tools:
xcode-select --install
In your terminal:
-
Clone the repository and navigate to the project directory:
git clone https://github.com/blontd6/MacOS-Remapper.git cd MacOS-Remapper -
Run the build script:
(might need sudo)
sh build.sh
This will compile the
KeyRemapper.mfile into a native executable namedKeyRemapper.
Start the utility from your terminal:
./KeyRemapperBecause this tool intercepts keyboard events, macOS requires Accessibility Permissions:
- When you first run the app, you may see an error or a prompt.
- Go to System Settings > Privacy & Security > Accessibility.
- Add or toggle on your Terminal (Terminal.app or your IDE/Different Terminal).
- Restart the
KeyRemapper.
- Arrow Keys (Up/Down): Navigate the menu options.
- Enter/Return: Select an option.
- Add/Edit Keybind:
- Select this option.
- Press the Origin Key (the key you want to change).
- Press the Target Key (the key you want it to act as).
- Delete Keybind:
- Select this option.
- Press the Origin Key of the mapping you want to remove.
- Quit: Exit the application (or press
qorCtrl+C).