Skip to content

Instantly share code, notes, and snippets.

@taktamur
Created November 5, 2012 13:26
Show Gist options
  • Save taktamur/4017168 to your computer and use it in GitHub Desktop.
Save taktamur/4017168 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook用設定ファイル(Terminalだけ、TabとCとVを除いてCommand_LとOption_Lを入れ替える)
<?xml version="1.0"?>
<!-- KeyRemap4MacBookのプライベート設定ファイル -->
<!-- 2012/11/05 [email protected] -->
<!-- Command_LとOption_Lを入れ替えますが、Tab(アプリ選択),C(コピー),V(ペースト)だけは残します。-->
<!-- http://pqrs.org/macosx/keyremap4macbook/document-private-xml.html.ja -->
<!-- http://pqrs.org/macosx/keyremap4macbook/xml.html.ja -->
<root>
<item>
<name>Swap Command_L to Option_L,without tab,copy,paste</name>
<appendix>Terminal only.</appendix>
<appendix>(Pass-Through Tab, Backquote, C(Copy) and V(Paste))</appendix>
<appendix>Command+Tab,C,Vをそのままで、残りはCommand_LとOption_Lを入れ替えます</appendix>
<identifier>remap.app_term_commandL2optionL_except_tab_copy_paste</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::TAB, ModifierFlag::OPTION_L, KeyCode::TAB, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::C, ModifierFlag::OPTION_L, KeyCode::C, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::V, ModifierFlag::OPTION_L, KeyCode::V, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment