Last active
April 23, 2024 09:19
-
-
Save goxofy/1f60b4e1b1715f3f73ba to your computer and use it in GitHub Desktop.
Karabiner 备份 For Filco Minila
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> | |
<!-- 设备定义 --> | |
<devicevendordef> | |
<vendorname>FILCO</vendorname> | |
<vendorid>0x0a5c</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>MINILA_KEYBOARD</productname> | |
<productid>0x8502</productid> | |
</deviceproductdef> | |
<!-- 将App键映射为一个修饰键 --> | |
<modifierdef>PC_APPLICATION_MOD</modifierdef> | |
<!-- 互换按键设定 --> | |
<item> | |
<name>Swap Delete and RightShift With Filco Minila</name> | |
<identifier>private.swap_delete_and_rightshift_with_minila</identifier> | |
<device_only>DeviceVendor::FILCO,DeviceProduct::MINILA_KEYBOARD</device_only> | |
<autogen>__KeyToKey__ KeyCode::FORWARD_DELETE, KeyCode::SHIFT_R</autogen> | |
<autogen>__KeyToKey__ KeyCode::SHIFT_R, KeyCode::FORWARD_DELETE</autogen> | |
</item> | |
<item> | |
<name>Swap LeftCommand and LeftOption With Filco Minila</name> | |
<identifier>private.swap_leftcommand_and_leftoption_with_minila</identifier> | |
<device_only>DeviceVendor::FILCO,DeviceProduct::MINILA_KEYBOARD</device_only> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen> | |
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen> | |
</item> | |
<!-- 改变按键设定 --> | |
<item> | |
<name>Change RightCommand To RightOption With Filco Minila</name> | |
<identifier>private.change_rightcommand_to_rightoption_with_minila</identifier> | |
<device_only>DeviceVendor::FILCO,DeviceProduct::MINILA_KEYBOARD</device_only> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen> | |
</item> | |
<item><!-- 利用App键配合数字键实现Macbook自带的各种功能键,比如亮度调节,音量调节,播放音乐等等 --> | |
<name>AppKey + NumberKey = ConsumerKey With Filco Minila</name> | |
<identifier>private.appkey_and_numberkey_consumerkey_with_minila</identifier> | |
<device_only>DeviceVendor::FILCO,DeviceProduct::MINILA_KEYBOARD</device_only> | |
<!-- 下面这一行配合第14、15行将App键映射为一个虚拟修饰键,虚拟修饰键的名称为PC_APPLICATION_MOD --> | |
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::VK_MODIFIER_PC_APPLICATION_MOD</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_1, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_2, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::BRIGHTNESS_UP</autogen> | |
<!-- <autogen>__KeyToKey__ KeyCode::KEY_3, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::EXPOSE_ALL</autogen> --> | |
<!-- <autogen>__KeyToKey__ KeyCode::KEY_4, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::DASHBOARD</autogen> --> | |
<autogen>__KeyToKey__ KeyCode::KEY_5, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_6, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::KEYBOARDLIGHT_HIGH</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_7, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::MUSIC_PREV</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_8, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::MUSIC_PLAY</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_9, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::MUSIC_NEXT</autogen> | |
<autogen>__KeyToKey__ KeyCode::KEY_0, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::VOLUME_MUTE</autogen> | |
<autogen>__KeyToKey__ KeyCode::MINUS, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::VOLUME_DOWN</autogen> | |
<autogen>__KeyToKey__ KeyCode::EQUAL, ModifierFlag::PC_APPLICATION_MOD | ModifierFlag::NONE, ConsumerKeyCode::VOLUME_UP</autogen> | |
</item> | |
</root> |
Thank you. Great script.
Is there a json version for Karabiner Element?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for writing this.
there is no RightCommand key on the Minila. So what does this do: "Change RightCommand To RightOption With Filco Minila"?