Skip to content

Instantly share code, notes, and snippets.

@Bigcircle
Created December 13, 2014 09:08
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 Bigcircle/9da173919147e82480a7 to your computer and use it in GitHub Desktop.
Save Bigcircle/9da173919147e82480a7 to your computer and use it in GitHub Desktop.
karabiner config
<?xml version="1.0"?>
<root>
<!-- 使用 Home / PageUp / PageDown 来 静音 / 增大 / 减小 音量 -->
<item>
<name>Volume Keys</name>
<appendix>Mute, Up, Down</appendix>
<identifier>remap.volumeKeys</identifier>
<autogen>
--KeyToConsumer--
KeyCode::HOME,
ConsumerKeyCode::VOLUME_MUTE
</autogen>
<autogen>
--KeyToConsumer--
KeyCode::PAGEUP,
ConsumerKeyCode::VOLUME_UP
</autogen>
<autogen>
--KeyToConsumer--
KeyCode::PAGEDOWN,
ConsumerKeyCode::VOLUME_DOWN
</autogen>
</item>
<!-- 设定 safari cmd + 1 / 2 切换到上一个 / 下一个标签 -->
<item>
<name>Change Safari PN Tab</name>
<identifier>remap.app_safari_tab_1</identifier>
<only>SAFARI</only>
<autogen>
__KeyToKey__
KeyCode::KEY_1, ModifierFlag::COMMAND_L,
KeyCode::KEY_1, ModifierFlag::OPTION_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::KEY_2, ModifierFlag::COMMAND_L,
KeyCode::KEY_2, ModifierFlag::OPTION_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment