xml 用于非Apple键盘的Karabiner private.xml切换目标显示模式

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml 用于非Apple键盘的Karabiner private.xml切换目标显示模式相关的知识,希望对你有一定的参考价值。

<?xml version="1.0"?>
<root>
  <devicevendordef>
    <vendorname>LOGITECH</vendorname>
    <vendorid>0x046d</vendorid>
  </devicevendordef>
  
  <deviceproductdef>
    <productname>LOGITECH_K811</productname>
    <productid>0xb317</productid>
  </deviceproductdef>
  
  <item>
    <name>Cmd + F2 to toggle TDM (Logitech_K811)</name>
    <appendix>Cmd + F2 for Target Display Mode</appendix>
    <identifier>private.logitch_K811_toggle_TMD</identifier>
    <!-- Comment the line below to remove restriction to mapping Logitech K811 only -->
    <device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_K811</device_only>
    <!--Target Display Mode-->
    <autogen>__KeyToKey__ KeyCode::F2, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::COMMAND_L</autogen>
<!--
    <autogen>__KeyToKey__ KeyCode::F6, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_DOWN, ModifierFlag::FN</autogen>
    <autogen>__KeyToKey__ KeyCode::F7, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::FN</autogen>
-->
  </item>

  <devicevendordef>
    <vendorname>MADCATZ</vendorname>
    <vendorid>0x0738</vendorid>
  </devicevendordef>
  
  <deviceproductdef>
    <productname>MADCATZ_STRIKEM</productname>
    <productid>0x1114</productid>
  </deviceproductdef>
  
  <item>
    <name>Cmd + F5 or F6 to adjust Adjust Brightness (Madcatz)</name>
    <appendix>Cmd + F2 for Target Display Mode - Command F5 or F6 brightness up/down.</appendix>
    <identifier>private.madcatz_strikem_toggle_TMD</identifier>
    <!-- Comment the line below to remove restriction to mapping Madcatz Strikem only -->
    <device_only>DeviceVendor::MADCATZ, DeviceProduct::MADCATZ_STRIKEM</device_only>   
    <!--Target Display Mode-->
    <autogen>__KeyToKey__ KeyCode::F2, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::COMMAND_L</autogen>
    <!-- Fn+F1F6,F7 to Brightness Adjust -->
    <autogen>__KeyToKey__ KeyCode::F6, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_DOWN, ModifierFlag::FN</autogen>
    <autogen>__KeyToKey__ KeyCode::F7, VK_COMMAND, ConsumerKeyCode::BRIGHTNESS_UP, ModifierFlag::FN</autogen>
  </item>
</root>

以上是关于xml 用于非Apple键盘的Karabiner private.xml切换目标显示模式的主要内容,如果未能解决你的问题,请参考以下文章

抢修Mac铝制键盘利器Karabiner

xml 我的Karabiner的`private.xml`(https://pqrs.org/osx/karabiner/index.html.en)。

mac上优秀的键盘改键神器:Karabiner Elements完美支持m1芯片详细教程解析

xml 我的鼠标设置为Karabiner

xml Karabiner为我自己设置文件。

xml Karabiner Umlauts(alt +u⇒ü等)