Skip to content

Instantly share code, notes, and snippets.

@gilfreund
Created July 17, 2019 08:39
Show Gist options
  • Save gilfreund/f4e99931ce3691d85f50ec6a731774dd to your computer and use it in GitHub Desktop.
Save gilfreund/f4e99931ce3691d85f50ec6a731774dd to your computer and use it in GitHub Desktop.
Map §± key to esc on Mac OSX

Being a vi user, I find the touchbar esc annoying. As I don't use § or ± on a regular basis, I desided to map that key to esc. Using automator, I added this to my login startup.

#!/bin/bash
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000029}]}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment