-
Notifications
You must be signed in to change notification settings - Fork 3
/
karabiner-private.xml
92 lines (89 loc) · 3.82 KB
/
karabiner-private.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0"?>
<root>
<appdef>
<appname>HIPCHAT</appname>
<equal>com.hipchat.HipChat</equal>
</appdef>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<list>
<item>
<name>Command-D to Command-Tab</name>
<identifier>private.command_d_to_command_tab</identifier>
<autogen>--KeyToKey--
KeyCode::D, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND,
KeyCode::TAB, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Command-E to Shift-Command-Tab</name>
<identifier>private.command_e_to_shift_command_tab</identifier>
<autogen>--KeyToKey--
KeyCode::E, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND,
KeyCode::TAB, ModifierFlag::COMMAND_L | VK_SHIFT</autogen>
</item>
<item>
<name>Chrome Command-J/K</name>
<identifier>private.chrome_command_j_k</identifier>
<only>GOOGLE_CHROME</only>
<autogen>--KeyToKey--
KeyCode::J, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L</autogen>
<autogen>--KeyToKey--
KeyCode::K, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L</autogen>
</item>
<item>
<name>Vim Use both Cmd/Opt as Opt, except for D/E/Tab/`/M/N, and except for just Cmd_R</name>
<identifier>private.vim_command_opt</identifier>
<only>VI</only>
<!-- Vim magic for kana. This has to be before others. -->
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_R, KeyCode::OPTION_R, KeyCode::VK_JIS_TOGGLE_EISUU_KANA</autogen>
<!-- The main -->
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_L</autogen>
<!-- Exceptions -->
<autogen>--KeyToKey--
KeyCode::D, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::TAB, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey--
KeyCode::E, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::TAB, ModifierFlag::COMMAND_L | VK_SHIFT</autogen>
<autogen>--KeyToKey--
KeyCode::TAB, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::TAB, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey--
KeyCode::BACKQUOTE, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey--
KeyCode::M, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::M, ModifierFlag::COMMAND_L</autogen>
<autogen>--KeyToKey--
KeyCode::N, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION,
KeyCode::N, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>HipChat Command-J/K</name>
<identifier>private.hipchat_command_j_k</identifier>
<only>HIPCHAT</only>
<autogen>--KeyToKey--
KeyCode::J, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L</autogen>
<autogen>--KeyToKey--
KeyCode::K, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L, ModifierFlag::SHIFT_L</autogen>
</item>
<item>
<name>Slack Command-J/K</name>
<identifier>private.slack_command_j_k</identifier>
<only>SLACK</only>
<autogen>--KeyToKey--
KeyCode::J, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L</autogen>
<autogen>--KeyToKey--
KeyCode::K, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND | ModifierFlag::NONE,
KeyCode::CURSOR_UP, ModifierFlag::OPTION_L</autogen>
</item>
</list>
</root>