Make CapsLock Great Again!
δΈζζζ‘£ | EN DOCS | Karabiner Gallery | Github Repo | Import URL
Transform βͺCapsLock into a powerful modifier β± Hyper that miraculously increases your work productivity!
Control Plane 0 Layout (There are 15 more!)
- Powerful: Transform Capslock into a great modifier: Hyper(β±). (such as β§ββ₯β)
- Useful: Navigation, mousekey, clipboard, win/term ctrl, shortcuts, etc... Redefine the keyboard!
- Speed-Up: Optimized for developers, high-frequency move stay in hot zone.
- Extensible: Work with existing modifiers, which introduce 16 extra control planes.
- MouseKey: Manipulate mouse cursor and wheels with keyboard
- Cross-Platform: MacOS and Windows. Light-Weight and portable
- Basic : Press βͺ Capslock emit an β Escape. Hold it enabling the β± Hyper Modifier.
- Navigation : Vim style navigation. Cursor move, text selection, switch desktop/window/tab, mouse move/wheel,etc...
- Deletion : Maps
BNM,
to deletion operation to perform fast char/word/line deletion without hand move. - MouseKey : Maps keypad to fully functional mouse
- Window : Close app/win/tab, Switch app/win/tab/desktop, integration with win-manager app such as Moom,Slate,Magnet
- Application : Shortcuts for launching or switching frequently used applications
- Terminal : Sending high-freq signals (Ctrl-Z, Ctrl-D, Ctrl-C) and vim/tmux prefix meta key via β±
- Clipboard : Turn numkeys into 10 different text clipboard. β±βn copy and β±n paste.
- Shifter : Turn some keys into common code symbols.
- Functional : Screenshtots. Fine-grained light/volume control. Take function keys' function back!
It only takes two steps to enable Capslock on your Mac: Download & Enable
-
Download & Install Karabiner-Elements.
Following the wizard and grant required permissions (Settings - Security - Privacy)
-
Enable
Open this link with Safari. It will launch Karabiner-Elements and load configuration.
karabiner://karabiner/assets/complex_modifications/import?url=https://raw.githubusercontent.com/Vonng/Capslock/master/mac_v3/capslock.json
- Karabiner GalleryοΌhttps://ke-complex-modifications.pqrs.org/json/caps_lock_enhancement.json
- GitHub RepoοΌ https://raw.githubusercontent.com/Vonng/Capslock/master/mac_v3/capslock.json
- Capslock WebsiteοΌ https://vonng.com/capslock.json
- Or download capslock.json to
~/.config/karabiner/assets/complex_modifications/
manually.
Click
Enable All
forCapslock Enhancement
on pop-up dialog. It will affect immediately.You can now try moving cursor with βͺ + h,j,k,l , And exploring more features below.
Capslock works on ANSI keyboards and similar layouts. It literally remaps every keys on the keyboard. Including 10 categories.
Control Planes are defined by combination of four extra left modifiers: ββ₯ββ§.This image shows the layout of control plane 0.
Category | Color | Description |
---|---|---|
Basic | Blue | Press βͺ Capslock emit an β Escape. Hold it enabling the β± Hyper Modifier. |
Navigation | Pink | Vim style navigation. Cursor move, text selection, switch desktop/window/tab, mouse move/wheel,etc... |
Deletion | Brown | Maps BNM, to deletion operation to perform fast char/word/line deletion without hand move. |
MouseKey | Keypad | Maps keypad to fully functional mouse |
Window | Azure | Close app/win/tab, Switch app/win/tab/desktop, intergration with win-manager app such as Moom,Slate,Magnet |
Application | Yellow | Shortcuts for launching or switching frequently used applications |
Terminal | Green | Sending high-freq signals (Ctrl-Z, Ctrl-D, Ctrl-C) and vim/tmux prefix meta key via β± |
Clipboard | Purple | Turn numkeys into 10 different text clipboard. β±βn copy and β±n paste. |
Shifter | Orange | Turn some keys into common code symbols. |
Functional | Cyan | Screenshtots. Fine-grained light/volume control. Take function keys' function back! |
Key | MapsTo | Comment |
---|---|---|
βͺ Press | β Escape | Click Capslock to emit Escape |
βͺ Hold | β± Hyper | Hold Capslock to enable Hyper modifier. |
β±β | βͺ Capslock | Press to switch Capslock status |
β±β£ | ββ£ | Switch input source, +β to emoji |
Note that β± is implemented as combination of ALL RIGHT MODIFIERS: ββ₯ββ§.
Hold β± Hyper to enable hyper functionalities. We will assume and omit that in subsequent document.
- H, J, K, L, U, I, O, P are used as Navigators. Maps to ββββββββ by default. (pink area).
- 9 control planes has already been allocated for navigators.
- Hold additional β Command for selection. (like holding β§shift in normal), additional β₯ Option for word/para selection.
- Hold additional β§ Shift for app/win/tab switching. Hold additional β Control for desktop management .
- Hold additional β₯ Option for π±οΈ mouse move. Add β§shift to β« accelerate. (U, I, O, P maps to mouse buttons) .
- β§β₯ turns navigator to π²οΈ mouse wheel, and β§β is the β« accelerated version .
HJKL
for wheel, wihleUIOP
for reversed wheel move.
Feature | Move | Select | WordSel | Window | Desktop | π±οΈ | π±οΈβ« | π²οΈ | π²οΈβ« |
---|---|---|---|---|---|---|---|---|---|
Key\Mod | β± | β | ββ₯ | β§ | β | β₯ | β§β₯ | β§β | β§β |
H | Left | word left | word left | prev tab | prev desk | β¬ οΈ | β¬ οΈβ« | β¬ οΈ | β¬ οΈβ« |
J | Down | line down | 3 line down | next app | focus | β¬οΈ | β¬οΈβ« | β¬οΈ | β¬οΈβ« |
K | Up | line up | 3 line up | prev app | expose all | β¬οΈ | β¬οΈβ« | β¬οΈ | β¬οΈβ« |
L | Right | word right | word right | next tab | next desk | β‘οΈ | β‘οΈβ« | β‘οΈ | β‘οΈβ« |
U | PgUp | prev page | prev page | zoom- | fullscreen | π±οΈL | π±οΈL | β‘οΈ | β‘οΈβ« |
I | Home | line head | end2head | prev win | hide | π±οΈR | π±οΈR | β¬οΈ | β¬οΈβ« |
O | End | line end | head2end | next win | hide all | π±οΈB | π±οΈB | β¬οΈ | β¬οΈβ« |
P | PgDn | next page | next page | zoom+ | Launchpad | π±οΈF | π±οΈF | β¬ οΈ | β¬ οΈβ« |
Arrow Navigation
- Arrows ββββ to π±οΈ mouse actions too. Hold β₯ Option to β¬ slow down, hold β Command to β« speed up.
- Hold β§ Shift turns to π²οΈ wheel move. Extra β₯ Option to β¬ slow down, extra β Command to β« speed up.
- β© Return maps to left click. And additional ββ₯ββ§ turns into right click, middle click, backward, forward.
Feature | π±οΈ | π±οΈβ¬ | π±οΈβ« | π²οΈ | π²οΈβ¬ | π²οΈβ« |
---|---|---|---|---|---|---|
Key\Mod | β± | β₯ | β | β§ | β§β₯ | β§β |
ββββ | speed = 1600 | speed Γ· 2 | speed Γ 2 | speed = 32 | speed Γ· 2 | speed Γ 2 |
β© | π±οΈL | π±οΈM | π±οΈR | π±οΈL | π±οΈB | π±οΈF |
N M , . are used as Deletor keys. Right below the navigators for fast access (brown area).
Key\Mod | β± | β | β₯ |
---|---|---|---|
N | del a word ahead | del till line head | del the whole line |
M | del a char ahead | del a word ahead | move line below |
, | del a char after | del a word after | move line above |
. | del a word after | del till line end | del the whole line |
β« | del file | purge file |
- Turn Keypad into a fully funcional π±οΈ mouse.
- Numbers maps to 8 direction π±οΈ mouse move. Hold β₯ Option to β¬ slow down, hold β Command to β« speed up.
- Hold additional β§ Shift turns to π²οΈ wheel move. Extra β₯ Option to β¬ slow down, and extra β Command to β« speed up.
- First line maps to wheel move and 0, ., β€, +, - maps to five mouse buttons.
β π²οΈβ¬ οΈ | = π²οΈβ¬οΈ | / π²οΈβ¬οΈ | * π²οΈβ‘οΈ |
---|---|---|---|
7π±οΈ |
8 π±οΈβ¬οΈ | 9 π±οΈ |
- π±οΈB |
4π±οΈ β¬ οΈ | 5π±οΈ | 6 π±οΈβ‘οΈ | + π±οΈF |
1π±οΈ |
2 π±οΈβ¬οΈ | 3 π±οΈ |
|
0 π±οΈL | . π±οΈM | β€ π±οΈR |
Tab
, Q, W, A, s used as window control keys. Focuing on close/switch applications / windows / tabs / desktops. (azure area)- Windows management (resize, layout) leaves to external application such as Moom, Magnet, and Slate. Bind ββ₯β§βA manually.
Key\Mod | β± | β | β₯ | β | β§ |
---|---|---|---|---|---|
β₯ | next app | prev app | switch desktop | switch tab | |
Q | close app | close app | Lock Screen | Logout | |
W | close tab | close all win | Display Sleep | Sleep | |
A | win app | expose all | show desktop | LaunchPad | |
S | next tab | prev tab | next win | prev win |
- E R T Y F G are used as application shortcuts. (yellow area)
- Popular apps and dev tools are registed to 3 default planes: β±/β/β₯. Assign these shortcuts according to your own needs.
Key\Mod | β± | β | β₯ |
---|---|---|---|
E | Safari | Finder | |
R | iTerm2 | Preview | Terminal |
T | Visual Studio Code | Typora | Note |
Y | Siri | Karabiner | Amphetamine |
F | Alfred 4 | Dash | Dictionary |
G | Intellij IDEA | Chrome | Calender |
D, Z, X, C, V, B are used as terminal control keys. Sending singals and IDE commands. (green area)
Key\Mod | β± | β |
---|---|---|
D | βD Ctrl+D (Send EOF) | Define (Force touch) |
Z | βZ Ctrl+Z (SIGTSTP) | F5 (VS Code Debug) |
X | βR Ctrl+R (IDE Run) | βF5 (VS Code Run) |
C | βC Ctrl+C (SIGINT) | β§>F5οΌVS Code StopοΌ |
V | βVCtrl+V (Vim Prefix) | |
B | βBCtrl+B (Tmux Prefix) |
Number keys 1, 2, β¦, 9, 0 are used as (text) clipboard. Hold β to copy, and press to paste. (purple area)
Key\Mod | β± | β |
---|---|---|
1 | Paste from clip 1 | Copy to clip 1 |
2 | Paste from clip 2 | Copy to clip 2 |
β¦β¦ | β¦β¦ | β¦β¦ |
0 | Paste from clip 0 | Copy to clip 10 |
- Trivial transformation for misc characters. (orange area)
- Some special tricks for developers. Such as
;'
maps to:=
or!=
(β)
Key\Mod | β± | β | β₯ |
---|---|---|---|
- | _ | Zoom Out | |
= | + | Zoom In | |
[ | ( | { | < |
] | ) | } | > |
; | ! | : | |
' | = | = | |
/ | β/ | ||
\ | β/ |
-
Use F1,β¦F12 as standard functional keys, while hold β± Hyper to turn them back. (cyan area)
-
βCommand + F1 / F2 / F3 are used as desktop switcher. Enable shortcuts in system preference first:
Preference β Keyboard β Shortcuts β MissionControl β Switch to Desktop 1/2/3
-
If you are using RMBP with Bar, consider changing your bar back to function keys with:
Karabiner-Elements β Function Keys β Use all F1, F2, etc. keys as standard function keys
Key\Mod | β± | β | Comment |
---|---|---|---|
` | ββ§β4 | β§β4 | Area selection screenshot(β to file) |
F1 | display_brightness_decrement | β1 | β1 | Brightness Down / Desktop 1 |
F2 | display_brightness_increment | β2 | β2 | Brightness Up / Desktop 2 |
F3 | ββ | β3 | β3 | Expose All / Desktop 3 |
F4 | Launchpad | Launchpad | |
F5 | illumination_decrement | Keyboard Light Down | |
F6 | illumination_increment | Keyboard Light Up | |
F7 | rewind | Music Prev | |
F8 | play_or_pause | Play / Pause | |
F9 | fastforward | Music Next | |
F10 | mute | Mute | |
F11 | volume_decrement | Volume Down | |
F12 | volume_increment | Volume Up | |
F13 | ββ§β3 | β§β3 | Full Screentshot (β to file) |
F14 | β§β5 | β§β6 | Screenshot menu (β touchbar snap) |
F15 | play_or_pause | Play / Pause | |
Insert | β§β₯ display_brightness_increment | Fine-Grained Brightness Up | |
Delete β¦ | β§β₯ display_brightness_decrement | Fine-Grained Brightness Down | |
Home β | β§β₯ illumination_increment | Fine-GrainedKeyboard Light Up | |
End β | β§β₯ illumination_decrement | Fine-Grained Keyboard Light Down | |
PgUp β | β§β₯ volume_increment | Fine-Grained Volume Up | |
PgDn β | β§β₯ volume_decrement | Fine-Grained Volume Down |
Glyph | Name | Glyph | Name |
---|---|---|---|
βͺ | Capslock | β± | Hyper |
β | Escape | β£ | Space |
β | Command (Mac) | β | Alter (Win) |
β₯ | Option (Mac) | β | Win (Win) |
β | Control | β§ | Shift |
β© | Return | β€ | Enter |
ββββ | Arrow Cursor | ββ | Home/End |
β₯β€ | Tab | β«β¦ | Delete / ForwardDelete |
β | Numlock | β«β¬ | Fast / Slow |
π±οΈL | Mouse Left Click (Button1) | π±οΈB | Mouse Backward (Button4) |
π±οΈR | Mouse Right Click (Button2) | π±οΈF | Mouse Forward (Button5) |
π±οΈM | Mouse Middle Click (Button3) | π²οΈ | Mouse Wheel |
control planes
Plane | Modifiers | Plane | Modifiers | Plane | Modifiers |
---|---|---|---|---|---|
0 | β± | 3 | β±ββ₯ | 7 | β±ββ₯β |
1 | β±β | 5 | β±ββ | 11 | β±ββ₯β§ |
2 | β±β₯ | 6 | β±β₯β | 13 | β±βββ§ |
4 | β±β | 9 | β±ββ§ | 14 | β±β₯ββ§ |
8 | β±β§ | 10 | β±β₯β§ | 15 | β±ββ₯ββ§ |
12 | β±ββ§ |
- Capslock Mac V3: 2021.03 - now (The Latest version)
- Capslock Mac V2: 2017 - 2021
- Capslock Mac V1: 2015 - 2017
- Capslock Win: 2013 - 2015
MacOS Supported | Win Supported |
---|---|
MacOS Big Sur (11.0 ) | Windows 10 |
MacOS Catalina (10.15) | Windows 8 |
MacOS High Sierra (10.13) | Windows 7 |
MacOS Sierra (10.12) | Windows Vista |
MacOS EI Capitan (10.11) | Windows XP |
MacOS Yosemite (10.10) or lower (via Capslock Mac v1 |
(via Capslock Win) |
MacOS v3 is actively maintained, available on MacOS 10.11 - 11.x. Yosemite (10.10) or lower are supported via Capslock Mac v1
Windows version is already archived. You can use pre-compiled binary or install AutoHotKey and load capslock.ahk manually
Q: Why using β± as the symbol for Hyper?
A: Because the ASCII code for * is exactly 42, which is the ultimate answer to life, universe, and everything. β± (Heavy-Asterisk) is a pretty version of *.
Q: What's new in v3?
A: The original v2 only use 1 ~ 3 control planes. While v3 uses up to 9 control planes. A large number of functions have been added to make the additional modifier ββ₯ββ§ functioning in a reasonable way.
Q: Is there any incompatible changes in V3 compare to V2 ?
A: There are three minor incompatible changes:
-
F13/F4 from music prev/next to screenshot;
-
Number keys are used as clipboard instead of shifter
-
βD now perform define(force touch) instead of opening dictionary app.
Q: Why is there no Linux OS support?
A: I'm using Linux through MacOS terminal. It actually feels much better than raw Linux π. This feature can be achieved via xmodmap
, contribution are welcome!
Q: Why is there an older version in MacOS?
A: There was an older version of Karabiner that used XML config. Apple modified it's kernel architecture in MacOS Sierra (10.12) and many programs had to be overhauled. So then there was a new version of Karabiner, the Karabiner-Elements, which is still in use today.
Q: How can I customize it to my needs?
A: Just fork this repo and make modification to mac_v3/capslock.json
according to documentation
You can edit the more human-readable format mac_v3/capslock.yml
then compile it into capslock.json
format with make compile
.
Q: Is this original?
A: I'm the first one to make a capslock overhaul schema as far as I know. The original win AHK version was wrote in 2013. The first mac version was wrote in 2015. It is the first capslock emulation schema in karabiner's gallery.
AuthorοΌ Vonng (rh@vonng.com)
License: Apache 2.0 License
Beian: ζ΅ICPε€15016890-3ε·