Skip to content

Mac V2

Capslock Enhancement Mac V2, the 2017–2021 Karabiner-Elements rules that made Caps Lock Escape on a tap and Hyper on a hold.
Archived, not maintained

Mac V2 was written for Karabiner-Elements on macOS 10.11 El Capitan, 10.12 Sierra and 10.13 High Sierra, the systems its README listed. It was replaced by Mac V3 in 2021 and has not been checked against current macOS or Karabiner-Elements.

Mac V2 was the first Capslock edition for Karabiner-Elements, the rewrite of Karabiner that macOS Sierra required. It is a set of ten complex-modification rules. A tap on Caps Lock sends Escape. Holding it turns it into Hyper (✱): Karabiner-Elements holds the four right-hand modifiers, ⌃ ⌥ ⇧ ⌘, together, so Hyper still combines with the left-hand ones and most apps accept it.

The Mac V2 layout drawn on a full keyboard, with the action of each key under Hyper
The layout diagram from the V2 README. A few app keys in it differ from the tables on this page, which follow the rule file.

Caps Lock

KeyResult
Tap Caps LockEscape
Hold Caps LockHyper (✱), the right-hand ⌃ ⌥ ⇧ ⌘ held together
✱ EscapeCaps Lock. The README notes a bug: Caps Lock was hard to turn off again

Hyper alone moves the cursor. Adding one left-hand modifier selects instead, moves the pointer, switches tabs and apps, or works with Spaces.

Key✱ move✱ ⌘ select✱ ⌥ pointer✱ ⇧ switch✱ ⌃ Spaces
H←⇧←Pointer leftPrevious tab (⌃⇧Tab)Space to the left (⌃←)
J↓⇧↓Pointer downNext app (⌘Tab)Windows of the current app (⌃↓)
K↑⇧↑Pointer upPrevious app (⇧⌘Tab)Mission Control (⌃↑)
L→⇧→Pointer rightNext tab (⌃Tab)Space to the right (⌃→)
UPage Up⇧Page Up———
IHome⇧Home———
OEnd⇧End———
PPage Down⇧Page Down———

Mouse

KeyResult
✱ ← ↓ ↑ →Move the pointer, like ✱ ⌥ H J K L
✱ ReturnLeft click
✱ ⌘ ReturnRight click

Deleting

KeySendsDeletes
✱ N⌥⌫The word before the cursor
✱ M⌫The character before the cursor
✱ ,⌦The character after the cursor
✱ .⌥⌦The word after the cursor
✱ ⌘ N, ✱ ⌘ M⌘⌫Back to the start of the line

Windows and tabs

KeySendsResult
✱ Tab⌘TabNext app
✱ ⌘ Tab⇧⌘TabPrevious app
✱ Q⌘QQuit the app
✱ W⌘WClose the tab
✱ S⌃TabNext tab
✱ ⌘ S⌃⇧TabPrevious tab
✱ A⌃⌥⇧⌘ALeft free for the window manager Moom
✱ ⌘ A⌃↑Mission Control

Terminal keys

KeySendsUsed for
✱ Z⌃ZSuspend the job (SIGTSTP)
✱ X⌃RRun, in IDEs
✱ C⌃CInterrupt (SIGINT)
✱ V⌃VVim prefix
✱ B⌃BThe default tmux prefix
✱ D⌃DEnd of input (EOF)

Apps

The README suggested replacing these with your own favourite apps.

Key✱✱ ⌘
ESafariFinder
RiTerm2Preview
TVisual Studio CodeTypora
D⌃D (see above)Dictionary
F⌃⌥⇧⌘F, left free for AlfredDash
GIntelliJ IDEAGoogle Chrome

Function keys

V2 expected F1 to F12 to act as standard function keys and used Hyper to get the printed functions back. On a MacBook Pro with a Touch Bar, the README suggested turning on Karabiner-Elements › Function Keys › "Use all F1, F2, etc. keys as standard function keys".

Key✱Key✱
F1Brightness downF7Previous track
F2Brightness upF8Play or pause
F3Mission ControlF9Next track
F4LaunchpadF10Mute
F5Keyboard backlight downF11Volume down
F6Keyboard backlight upF12Volume up

Keys found on full-size keyboards:

Key✱
F13 (Print Screen)Previous track
F14 (Scroll Lock)Next track
F15 (Pause)Mute
Insert, DeleteBrightness up, down, in fine steps
Home, EndKeyboard backlight up, down, in fine steps
Page Up, Page DownVolume up, down, in fine steps

Shifted symbols

Key✱ types
1 2 3 4 5 6 7 8 9 0! @ # $ % ^ & * ( )
- =_ +
[ ]( )
;!
'=
✱ ⌘ ;:
✱ ⌘ '=

The last four rows make != and := quick to type.

Other keys

KeySendsResult
✱ `⌃⇧⌘4Screenshot of an area, to the clipboard
✱ ⌘ `⇧⌘4Screenshot of an area, to a file
✱ Delete⌘⌫Move to Trash in Finder
✱ / and ✱ \⌘/Comment or uncomment, in many editors
✱ Space⌃SpaceSwitch input source

How it was installed

These are the steps from the V2 README, kept for the record.

  1. Download and install Karabiner-Elements.
  2. Import the rules by opening this address in Safari:
    karabiner://karabiner/assets/complex_modifications/import?url=https://raw.githubusercontent.com/Vonng/Capslock/main/mac_v2/capslock.json
    Or copy capslock.json into ~/.config/karabiner/assets/complex_modifications/, which is what make install in the mac_v2 folder does.
  3. In Karabiner-Elements, open the Complex Modifications tab, click Add Item, and enable the rules you want.
  4. To change the apps or any other key, edit the imported file in ~/.config/karabiner/assets/complex_modifications/.
Note

The README's own import link pointed at the repository's mac/ folder, which now holds V3, and its second link pointed at the Karabiner-Elements gallery, which also lists V3 today. The address above points at the V2 file.

Files

All of V2 is in mac_v2/ in the repository.

FileWhat it is
capslock.jsonThe ten V2 rules, ready to import
karabiner.jsonA complete Karabiner-Elements configuration with the same rules. make all copies it over ~/.config/karabiner/karabiner.json and replaces your existing settings
makefileThe install and all targets described above
README.mdThe original V2 documentation

Differences from V3

  • Planes. V2 combined Hyper with one left-hand modifier at a time, which gave it only a few planes. V3 combines Hyper with any of the four left-hand modifiers, for up to 16 planes.
  • Changed keys. In V3.1, F13 and F14 control screenshots instead of the previous and next track, ✱ ⌘ D runs Define instead of opening Dictionary, and Spotlight replaces Launchpad.