forked from Vonng/Capslock : Make CapsLock Great Again!
Transform Capslock into Hyper , improve your productivity tremendously!
Powerful: Make Capslock a great new modifier key: Hyper(β±) .
Well-Designed: High-Freq key in hot-area. Bring lots of useful functionalities.
Compatible: Work well with other modifiers, appliactions, devices.
Light-Weight: Just a small script, carry it everywhere !
Design Document
KeyRemap Document
Download Karabiner-Elements and Install
Copy URL to your browser(open in safari ) to import configuration script.
karabiner://karabiner/assets/complex_modifications/import? url=https://raw.githubusercontent.com/suliveevil/Capslock/master/mac/ultimate_macOS.json
or import config file from Karabiner-Elements Offical Script Gallery
https://pqrs.org/osx/karabiner/complex_modifications/# ultimate_macOS
Open Karabiner, Tab "ComplexModification", Button "Add Item", and enable entries you like.
Default conf file path is $HOME/.config/karabiner/assets/complex_modifications. Modify it if you like.
Enable functions: [App] karabiner-elements -> [Tab] Complex Modification -> Add Item
details
β± Hyper actually maps to β β₯ β§ β (all right modifiers) , It works well with additional left modifiers. And compatible with most application. Hold CapsLock to enable Hyper funcationality while press it will emit an Escape.
Origin
Maps to
Comment
βͺ Press
β Escape
Single press to escape
βͺ Hold
β± Hyper
Enable Hyper Functionality
details
Hold β± Hyper to enable navigators
Hold additional β Command for selection . (just like holding β§shift in normal)
Hold additional β₯ with H J K L for mouse movement
Hold additional β§ with H J K L for switching tab/app
Hold additional β with H J K L for desktop management . (just like holding βctrl with arrow key)
Origin
Maps to
Comment
β 0
β β LeftArrow
cursor move to the begin of the line
β 4($)
β β RightArrow
cursor move to the end of the line
H
β LeftArrow
cursor left
J
β DownArrow
cursor down
K
β UpArrow
cursor up
L
β RightArrow
cursor right
β H
β§ β LeftArrow
cursor left and selection
β J
β§ β DownArrow
cursor down and selection
β K
β§ β UpArrow
cursor up and selection
β L
β§ β RightArrow
cursor right and selection
β₯ H
β LeftArrow
β₯ β
β₯ J
β DownArrow
β₯ β
β₯ K
β UpArrow
β₯ β
β₯ L
β RightArrow
β₯ β
β H
β LeftArrow
expose all
β J
β DownArrow
show desktops
β K
β UpArrow
switch prev desktop
β L
β RightArrow
switch next desktop
U
β PageUp
cursor page up
I
β Home
cursor to line(doc) head
O
β End
cursor to line(doc) end
P
β PageDn
cursor page down
β U
X X
leave to other apps
β I
X X
leave to other apps
β O
X X
leave to other apps
β P
X X
leave to other apps
β₯ U
X X
leave to other apps
β₯ I
X X
leave to other apps
β₯ O
X X
leave to other apps
β₯ P
X X
leave to other apps
β U
X X
leave to other apps
β I
X X
leave to other apps
β O
X X
leave to other apps
β P
X X
leave to other apps
details
Emulate mouse with keyboard
Also can be archived by β₯ with U I O P
Origin
Maps to
Comment
β
MouseLeft
mouse cursor left
β
MouseDown
mouse cursor down
β
MouseUp
mouse cursor up
β
MouseRight
mouse cursor right
β©
MouseLeft
mouse left button click
β₯ β©
MouseMiddle
mouse Middle button click
β β©
MouseRight
mouse right button click
details
Origin
Maps to
Comment
N
β₯β« Option + ForwardDelete
Delete a word ahead
M
β« ForwardDelete
Delete a char ahead
,
β¦ Delete
Delete a char after
.
β₯β¦ Option + Delete
Delete a word after
β M ,β N
ββ₯β« Command+Option+ForwardDelete
Delete to line head
details
Origin
Maps to
Comment
β₯ Tab
ββ₯ Command+Tab
Switch Window
ββ₯ Command+Tab
ββ§β₯ Command+Shift+Tab
Switch Window Reversely
Q
βQ
Close Window
W
βW
Close Tab
A
ββ₯β§βA
Leaves to Moom , β»a window resize app
βA
ββ Ctrl+UpArrow
OSX Expose All
S
ββ₯ Ctrl+Tab
Switch Tab
βS
ββ§β₯ Ctrl+Shift+Tab
Swtich Tab Reversely
β₯D
F11
Show Desktop
details
Common bash utils: EOF, SIGINT, SIGTSTP, VIM/Tmux Prefix
Origin
Maps to
Comment
D
β D Ctrl+D
EOF
Z
β Z Ctrl+Z
SIGTSTP
X
β R Ctrl+R
IDE Run
C
β C Ctrl+C
SIGINT
V
β V Ctrl+V
Vim Prefix
B
β B Ctrl+B
Tmux Default Prefix
details
Maybe you'd like overwrite these with your own favorite apps.
Origin
Maps to
Comment
E
Open Finder
Open File Browser
βE
Open Safari
Open Web Browser
R
Open iTerm2
Great terminal for osx (Run)
βR
Open Pycharm
Open IDE
T
Open Visual Studio Code
Text Editor: Visual Studio Code
βT
Open Typora
Text Editor: Typora , a great WYSIWYG md editor
T
Open Visual Studio Code
Text Editor: Visual Studio Code
Y
Open Siri
Siri
βD
Open Dictionary
Find words
F
Open Alfred
βF
Open Dash
Find API Document
G
Open GitHub Desktop
GitHub Desktop
βG
Open Chrome
Google Chrome
details
Use hyper + 1~9 and 0 and - and = as standard functional keys(F1,β¦F12).
Origin
Maps to
Comment
β₯ 1
BrightnessDown
β₯ 2
BrightnessUp
β₯ 3
ExposeAll
β₯ 4
LaunchPad
β₯ 5
KeyboardLightDown
β₯ 6
KeyboardLightUp
β₯ 7
MusicPrev
β₯ 8
MusicPlay
β₯ 9
MusicNext
β₯ 0
Mute
β₯ -
VolumeDown
β₯ =
VolumeUp
F13 PrintScreen
MusicPrev
F14 ScrollLock
MusicNext
F15 Pause
MusicPlay
Just as it shows
Insert
β₯BrightnessUp
Fine grained brightness up
Delete
β₯BrightnessDown
Fine grained brightness down
Home
β₯KeyboardLightUp
Fine grained keyboard light up
End
β₯KeyboardLightDown
Fine grained keyboard light down
PgUp
β₯VolumeUp
Fine grained volume up
PgDn
β₯VolumeDown
Fine grained volume down
details
A more convient shift for most case
Semicolon ; and Quote ' have some special treatment, makes input != and := easier
Origin
Maps to
Comment
1
!
Exclamation
2
@
At
3
#
Sharp
4
$
Dollar
5
%
Percent
6
^
Caret
7
&
Ampersand
8
*
Star
9
(
Left Round Bracket
0
)
Right Round Bracket
- Minus
_
Hyphen
= Equal
+
Plus
[ Left Bracket
{
Left Bracket β§ {[
] Right Bracket
}
Right Bracket β§ }]
; Semicolon
!
Exclamation
' Single Quote
=
EqualSign
β ; Semicolon
!
Colon
β ' Single Quote
=
EqualSign
details
Origin
Maps to
Comment
β Escape
βͺ CapsLock
Bug: Difficult to turn capslock off after emit
~ BackQuote
β§β4
macOS Area Screenshot to Desktop file
β ~ Command+BackQuote
ββ§β4
macOS Area Screenshot to Clipboard
β« Backspace
β β«
macOS Delete File
/ Slash
β / Command+Slash
Comment/Uncomment in many IDE
\ Backslash
β / Command+Slash
Comment/Uncomment in many IDE
β’ Spacebar
β β’ Ctrl+Spacebar
Switch Input Source
Modifiers: ο£Ώ Mac
Sym
Key
β±
Hyper
β
Control
β₯
Option
β§
Shift
β
Command
Modifiers: β Windows
Sym
Key
β±
Hyper
β
Control
β
Windows
β§
Shift
β
Alter
Normal Keys
GLYPH
NAME
ο£Ώ
Apple
β
Command, Cmd, Clover, (formerly) Apple
β
Control, Ctl, Ctrl
β₯
Option, Opt, (Windows) Alt
β
Alt
β§
Shift
βͺ
Caps lock
β
Eject
β© , β΅ , β
Return, Carriage Return
β€
Enter
β«
Delete, Backspace
β¦
Forward Delete
β
Escape, Esc
β
Right arrow
β
Left arrow
β
Up arrow
β
Down arrow
β
Page Up, PgUp
β
Page Down, PgDn
β
Home
β
End
β§
Clear
β₯
Tab, Tab Right, Horizontal Tab
β€
Shift Tab, Tab Left, Back-tab
β’
Space, Blank
β£
Space, Blank
ββ
Power
β
Num lock
?β
Help
ο
Context menu
AuthorοΌsuliveevil (suliveevil@outlook.com )