Skip to content

Instantly share code, notes, and snippets.

@Chiamaka
Last active February 21, 2023 16:44
Show Gist options
  • Save Chiamaka/b825f770f82941c22c28f7c085c77077 to your computer and use it in GitHub Desktop.
Save Chiamaka/b825f770f82941c22c28f7c085c77077 to your computer and use it in GitHub Desktop.
Convert to ` symbol on EU keyboards
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
@Chiamaka
Copy link
Author

Copy the code and paste it into your terminal. This will convert the key under the esc to the ~ sign.

Just so you know, when your laptop restarts, this binding will disappear.

To make it persistent, you can add the binding to your bash file, either bashrc or zshrc. This will run the binding script every time your terminal is active, so you won't need to do this binding manually.

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