Last active
September 5, 2016 20:23
-
-
Save eladnava/7a6bc5f063c9155327c25d166c8969b8 to your computer and use it in GitHub Desktop.
Karabiner private.xml for volume and music playback controls using F13 - F19 keys on wired Apple Keyboard
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> | |
<item> | |
<name>F19 to Sleep</name> | |
<identifier>Sleep</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F19, | |
KeyCode::VK_CONSUMERKEY_EJECT, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L | |
</autogen> | |
</item> | |
<item> | |
<name>F18 to Volume Up</name> | |
<identifier>VolumeUp</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F18, | |
ConsumerKeyCode::VOLUME_UP | |
</autogen> | |
</item> | |
<item> | |
<name>F17 to Volume Down</name> | |
<identifier>VolumeDown</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F17, | |
ConsumerKeyCode::VOLUME_DOWN | |
</autogen> | |
</item> | |
<item> | |
<name>F16 to Mute</name> | |
<identifier>VolumeMute</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F16, | |
ConsumerKeyCode::VOLUME_MUTE | |
</autogen> | |
</item> | |
<item> | |
<name>F15 to Next Song</name> | |
<identifier>NextSong</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F15, | |
KeyCode::VK_CONSUMERKEY_MUSIC_NEXT | |
</autogen> | |
</item> | |
<item> | |
<name>F14 to Play/Pause Song</name> | |
<identifier>PlayPauseSong</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F14, | |
KeyCode::VK_CONSUMERKEY_MUSIC_PLAY | |
</autogen> | |
</item> | |
<item> | |
<name>F13 to Previous Song</name> | |
<identifier>PrevSong</identifier> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::F13, | |
KeyCode::VK_CONSUMERKEY_MUSIC_PREV | |
</autogen> | |
</item> | |
<vkopenurldef> | |
<name>KeyCode::VK_OPEN_URL_SHELL_display_sleep</name> | |
<url type="shell">open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app</url> | |
</vkopenurldef> | |
<item> | |
<name>Eject to Start Screensaver</name> | |
<identifier>EjectStartScreensaver</identifier> | |
<autogen> | |
__KeyToKey__ ConsumerKeyCode::EJECT, ModifierFlag::NONE, | |
KeyCode::VK_OPEN_URL_SHELL_display_sleep | |
</autogen> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hotkeys
Reference