Last active
January 17, 2016 19:04
-
-
Save christophermark/b91dcd9ac1d7cd2d860b to your computer and use it in GitHub Desktop.
Karabiner key remapping for waking android screen
This file contains 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
<?xml version="1.0"?> | |
<root> | |
<!-- Shell Commands --> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_unlock_android_screen</name> | |
<url type="shell"> | |
<![CDATA[ | |
~/Library/Android/sdk/platform-tools/adb shell input keyevent 82 | |
]]> | |
</url> | |
</vkopenurldef> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_unlock_android_screen_and_open_robin</name> | |
<url type="shell"> | |
<![CDATA[ | |
~/Library/Android/sdk/platform-tools/adb shell input keyevent 82 | |
~/Library/Android/sdk/platform-tools/adb shell monkey -p com.robinpowered.compass -c android.intent.category.LAUNCHER 1 | |
]]> | |
</url> | |
</vkopenurldef> | |
<!-- Key Rebindings --> | |
<item> | |
<name>Keymappings for Chris (F1 to wake screen)</name> | |
<appendix>Rebinds the F1 key to an adb shell command, waking the screen of an attached android device.</appendix> | |
<identifier>f1_to_wake_android</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F1, | |
KeyCode::VK_OPEN_URL_unlock_android_screen, | |
</autogen> | |
</item> | |
<item> | |
<name>F2 to unlock Android screen and open Robin</name> | |
<appendix>Rebinds the F2 key to an adb shell command, waking the screen of an attached android device and opening robin.</appendix> | |
<identifier>f2_to_wake_android_and_open_robin</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F2, | |
KeyCode::VK_OPEN_URL_unlock_android_screen_and_open_robin, | |
</autogen> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usually placed in
~/Library/Application Support/Karabiner