This repo includes custom complex modification rules for karabiner-elements to customize key strokes.
The CapsLock key is modified to be used as a virtual modifier and in order to use the virtual modifier, the mandatory rules MUST be enabled.
The following keys are used as virtual modifiers.
The following modes can be enabled by hitting extra dedicated keys while CapsLock is pressed.
- Launcher mode : Enter
- Window control mode : Right command
- Mouse key mode : Right shift
The detailed instructions can be found in karabiner-elements.
In order to import the rules, fill <Rule URL>
and open the link in a web browser.
karabiner://karabiner/assets/complex_modifications/import?url=<Rule URL>
Or
The ruleset files can directly be copied under
$HOME/.config/karabiner/assets/complex_modifications/
Rule URLs can be copied from the following list.
The following keys are modified while the Capslock key is being pressed.
e.g. CAPSLOCK(pressed) + i -> Arrow Up
FROM |
TO |
CapsLock |
Virtual Modifier |
5 |
CapsLock |
FROM |
TO |
i |
Arrow up |
j |
Arrow left |
k |
Arrow down |
l |
Arrow right |
FROM |
TO |
h |
Home |
semicolon(;) |
End |
FROM |
TO |
u |
Delete |
o |
Delete foward |
FROM |
TO |
p |
Page up |
quote(') |
Page down |
FROM |
TO |
Open bracket([) |
Move left tab (CMD+SHIFT+[) |
Close bracket(]) |
Move right tab (CMD+SHIFT+]) |
FROM |
TO |
y |
Redo (CMD+SHIFT+z) |
FROM |
TO |
q |
CMD + q |
CMD + w |
CMD + SHIFT + w |
w |
CMD + w |
r |
CMD + r |
CMD + t |
CMD + SHIFT + t |
t |
CMD + t |
a |
CMD + a |
s |
CMD + s |
f |
CMD + f |
z |
CMD + z |
x |
CMD + x |
c |
CMD + c |
v |
CMD + v |
0 |
CMD + 0 |
hypen(-) |
CMD + - |
equal(=) |
CMD + = |
FROM |
TO |
9 |
Next window |
g |
Select a word |
Tab |
SHIFT+Tab |
d |
Open Translated Tab |
Right CMD(without capslock) |
Switch Input language |
Right Option(without capslock) |
fn key |
The following bindings are only enabled in VSCode application.
FROM |
TO |
b |
Go Back (CTRL + hypen) |
n |
Go Foward (CTRL + SHIFT + hypen) |
m |
Go to Definition (f12) |
CMD + m |
Go to References (SHIFT + f12) |
OPTION + m |
Go to Implementation (CMD + f12) |
comma(,) |
Next Problem (f8) |
period(.) |
Expand Selection |
CMD + period |
Shrink Selection |
Slash(/) |
Toggle line comment |
The following bindings are only enabled in iTerm application.
The following bindings are only enabled in Translate Tab application.
The following bindings are only enabled in VSCode application.
FROM |
TO |
b |
Go Back (CMD + [) |
n |
Go Foward (CMD + ]) |
m |
Declaration or Usages (CMD + b) |
CMD + m |
Implementations (CMD + OPTION + b) |
OPTION + m |
Type Declaration (CMD + SHIFT + b) |
comma(,) |
Next Problem (f2) |
period(.) |
Expand Selection |
CMD + period |
Shrink Selection |
Slash(/) |
Toggle line comment |
The launcher mode can be initiated by striking enter while the capslock key is being pressed.
e.g. CAPSLOCK(pressed) + ENTER(down/up) + c -> open Chrome
FROM |
Application |
c |
Chrome |
d |
Dock (CTRL + f3) |
e |
Spark |
f |
Forklift |
i |
Safari |
j |
IntelliJ CE |
k |
KakaoTalk |
m |
Menu (CTRL + f2) |
p |
Presto |
s |
Slack |
t |
iTerm |
v |
VSCode |
w |
WhatsApp |
This Window Control Mode requires a tool called Better Touch Tool. And it is desired to be configured to work properly.
The mode can be initiated by striking right command key while the capslock key is being pressed.
e.g. CAPSLOCK(pressed) + R_COMMAND(down/up) + m -> maximize window
FROM |
TO |
i |
Mission control |
j |
Move left a sapce |
k |
Application Window |
l |
Move right a space |
d |
Show desktop |
FROM |
TO |
1 |
Move to Desktop 1 |
2 |
Move to Desktop 2 |
3 |
Move to Desktop 3 |
4 |
Move to Desktop 4 |
FROM |
TO |
CMD + j |
Move activated window to a left space |
CMD + l |
Move activated window to a right space |
n |
Move activated window to a next monitor |
FROM |
TO |
h |
Resize window to left Half |
semicolon(;) |
Resize window to right half |
t |
Resize window to top half |
b |
Resize window to bottom half |
u |
Resizee window to left two thirds |
o |
Resize window to right two thirds |
m |
Resize window to max |
f |
Resize window to middle |
r |
Revert window size |
The Mouse Key Mode can be initiated by striking right shift key while the capslock key is being pressed.
FROM |
TO |
i |
Move cursor up |
j |
Move cursor left |
k |
Move cursor down |
l |
Move cursor right |
FROM |
TO |
u |
Scroll left |
o |
Scroll right |
p |
Scroll up |
quote(') |
Scroll down |
FROM |
TO |
v |
Left click |
b |
CMD + Left click |
n |
Right click |
The speed will change while pressing the following keys.
FROM |
TO |
s |
Slower cursor speed |
d |
Faster cursor speed |
f |
Even Faster cursor speed |
FROM |
TO |
h |
Prev Page |
semicolon(;) |
Next Page |
The tab key is pressed solo, it's used as the tab. But it's going to be used as a virtual key when it's pressed with the following keys.
e.g. tab(alone) -> tab, tab + q -> previous application
FROM |
TO |
q |
Prev application |
w |
Next application |
FROM |
TO |
o |
6 |
i |
5 |
u |
4 |
l |
3 |
k |
2 |
j |
1 |
m |
0 |