HenriAugusto

Karabiner C

Oct 6th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.98 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <root>
  3.  
  4.     <item>
  5.         <name>Numpad as Mouse</name>
  6.         <appendix>Toggle on/off with right-command + space</appendix>
  7.         <identifier>private.mode_example</identifier>
  8.         <autogen>
  9.           __KeyToKey__
  10.           KeyCode::SPACE, ModifierFlag::COMMAND_R | ModifierFlag::OPTION_R,
  11.           KeyCode::VK_CONFIG_TOGGLE_notsave_private_mode_example,
  12.         </autogen>
  13.     </item>
  14.  
  15.     <item hidden="true">
  16.         <identifier vk_config="true">notsave.private_mode_example</identifier>
  17.             <autogen>__ShowStatusMessage__ Using NumPad as Mouse
  18. press RIGHT CMD + RIGHT OTP
  19.  + SPACE to quit</autogen>
  20.         <autogen>__KeyToKey__ KeyCode::KEYPAD_5, KeyCode::VK_MOUSEKEY_BUTTON_LEFT</autogen>
  21.         <autogen>__KeyToKey__ KeyCode::KEYPAD_6, KeyCode::VK_MOUSEKEY_BUTTON_RIGHT</autogen>
  22.         <autogen>__KeyToKey__ KeyCode::KEYPAD_4, KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE</autogen>
  23.  
  24.         <autogen>__KeyToKey__ KeyCode::KEYPAD_2, KeyCode::VK_MOUSEKEY_BUTTON_LEFT,KeyCode::VK_MOUSEKEY_BUTTON_LEFT</autogen>
  25.         <autogen>__KeyToKey__ KeyCode::KEYPAD_3, KeyCode::VK_MOUSEKEY_BUTTON_RIGHT,KeyCode::VK_MOUSEKEY_BUTTON_RIGHT</autogen>
  26.         <autogen>__KeyToKey__ KeyCode::KEYPAD_1, KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE,KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE</autogen>
  27.  
  28.             <autogen>__KeyToKey__ KeyCode::KEYPAD_8, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  29.             <autogen>__KeyToKey__ KeyCode::KEYPAD_9, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_RIGHT</autogen>
  30.             <autogen>__KeyToKey__ KeyCode::KEYPAD_7, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_MIDDLE</autogen>
  31.  
  32.             <autogen>__KeyToKey__ KeyCode::KEYPAD_0, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  33.             <autogen>__KeyToKey__ KeyCode::KEYPAD_DOT, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  34.  
  35.     </item>
  36.  
  37.     <!-- UNCOMMENT
  38.     <item>
  39.             <name>5 to left click</name>
  40.             <appendix>key2mouse</appendix>
  41.             <identifier>5_to_left_click</identifier>
  42.             <autogen>__KeyToKey__ KeyCode::KEYPAD_5, KeyCode::VK_MOUSEKEY_BUTTON_LEFT</autogen>
  43.         <autogen>__KeyToKey__ KeyCode::KEYPAD_6, KeyCode::VK_MOUSEKEY_BUTTON_RIGHT</autogen>
  44.         <autogen>__KeyToKey__ KeyCode::KEYPAD_4, KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE</autogen>
  45.         <autogen>__KeyToKey__ KeyCode::KEYPAD_2, KeyCode::VK_MOUSEKEY_BUTTON_LEFT,KeyCode::VK_MOUSEKEY_BUTTON_LEFT</autogen>
  46.         <autogen>__KeyToKey__ KeyCode::KEYPAD_3, KeyCode::VK_MOUSEKEY_BUTTON_RIGHT,KeyCode::VK_MOUSEKEY_BUTTON_RIGHT</autogen>
  47.         <autogen>__KeyToKey__ KeyCode::KEYPAD_1, KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE,KeyCode::VK_MOUSEKEY_BUTTON_MIDDLE</autogen>
  48.  
  49.             <autogen>__KeyToKey__ KeyCode::KEYPAD_8, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  50.             <autogen>__KeyToKey__ KeyCode::KEYPAD_9, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_RIGHT</autogen>
  51.             <autogen>__KeyToKey__ KeyCode::KEYPAD_7, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_MIDDLE</autogen>
  52.  
  53.             <autogen>__KeyToKey__ KeyCode::KEYPAD_0, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  54.             <autogen>__KeyToKey__ KeyCode::KEYPAD_DOT, KeyCode::VK_MOUSEKEY_LOCK_BUTTON_LEFT</autogen>
  55.     </item>
  56.  
  57.     -->
  58.  
  59. </root>
Advertisement
Add Comment
Please, Sign In to add comment