Skip to content

Instantly share code, notes, and snippets.

@bjcull
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjcull/899334c8af37446ab12f to your computer and use it in GitHub Desktop.
Save bjcull/899334c8af37446ab12f to your computer and use it in GitHub Desktop.
Key remapping for running windows on a mac. AutoHotKey on Windows side, Karabiner on Mac side.
; The below line is for debugging key presses in the key history.
; #InstallKeybdHook
; Turn my useless right alt key into a rad delete key
RAlt::Delete
; Capture the custom remapped playback keys from the mac keyboard remapper
<+<^F7::Send,{Media_Prev}
<+<^F8::Send,{Media_Play_Pause}
<+<^F9::Send,{Media_Next}
<?xml version="1.0"?>
<root>
<item>
<name>Playback Controls to Ctrl+Shift+F(X)</name>
<identifier>private.playback_to_function</identifier>
<autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_PREV, KeyCode::F7, ModifierFlag::CONTROL_L, ModifierFlag::SHIFT_L</autogen>
<autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8, ModifierFlag::CONTROL_L, ModifierFlag::SHIFT_L</autogen>
<autogen>__ConsumerToKey__ ConsumerKeyCode::MUSIC_NEXT, KeyCode::F9, ModifierFlag::CONTROL_L, ModifierFlag::SHIFT_L</autogen>
</item>
<!-- ============================================================ -->
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment