megakey

Behavior reference

These tables describe the supplied macOS rules. Enable only the rows you want. See the modifier guide for the names and installation for importing or removing rules.

Mega is the center

The macOS combinations differ from Mega by one modifier:

                      Giga (Shift+Ctrl+Opt+Cmd)
                                ^ +Shift
                                |
 Wish (Ctrl+Opt) <------ Mega (Ctrl+Opt+Cmd) ------> Chaos (Opt+Cmd)
       -Cmd                     |                    -Ctrl
                                v
                         Force (Ctrl+Cmd)
                               -Opt

The modifier guide shows the corresponding Windows/Linux naming proposal. The supplied software remains macOS-only.

Physical input and output

Physical input Name Output with rule enabled
Hold Caps Lock with another key ⁂ Mega Ctrl+Opt+Cmd with that key
Hold Tab with another key ❖ Giga Shift+Ctrl+Opt+Cmd with that key
Right Ctrl ❋ Chaos Opt+Cmd
Right Option ▲ Force Ctrl+Cmd
Right Cmd ⭑ Wish Ctrl+Opt
Tap Caps Lock alone   Caps Lock in megakey.json; Esc in megakey-esc.json
Tap Tab alone   Tab in both files
Fn+Caps Lock   Caps Lock, if the keyboard exposes Fn to Karabiner

Shifted combinations

Physical input, held with another key Output
Shift+Caps Lock ❖ Giga: Shift+Ctrl+Opt+Cmd
Shift+Tab ❖ Giga: Shift+Ctrl+Opt+Cmd
Shift+Right Ctrl Shift+Chaos: Shift+Opt+Cmd
Shift+Right Option Shift+Force: Shift+Ctrl+Cmd
Shift+Right Cmd Shift+Wish: Shift+Ctrl+Opt

Optional clipboard demo

This is a separate rule in both files. Importing a file does not enable it; add Optional clipboard demo explicitly in Karabiner’s Complex Modifications to use it.

Input Demo disabled Demo enabled
Mega+C Ctrl+Opt+Cmd+C Cmd+C (Copy)
Mega+V Ctrl+Opt+Cmd+V Cmd+V (Paste)
Giga+V Shift+Ctrl+Opt+Cmd+V Cmd+Shift+V
Giga+C Shift+Ctrl+Opt+Cmd+C Cmd+Shift+C

Cmd+Shift+V pastes without formatting in Google Docs and many web apps. Its action elsewhere, and the action of Cmd+Shift+C, depend on the app. The demo matches the full Ctrl+Opt+Cmd combination, whether produced by Caps Lock, Tab, or the modifiers pressed directly. It overrides existing bindings for those C/V combinations. Chaos, Force, and Wish alone do not match it. Extra modifiers other than Shift prevent the demo from matching.

Why the rules work this way

Karabiner evaluates manipulators from top to bottom and uses the first match. The Fn+Caps Lock exception comes first. The general Caps Lock rule accepts optional modifiers, so it also handles Shift+Caps Lock: optional Shift passes through and turns Mega into Giga. A separate Shift-specific rule after it would never run. Removing that unreachable rule preserves both the effective chord behavior and the variant’s tap action.

The clipboard rule requires Control, Option, and Command and allows optional Shift. Karabiner removes mandatory modifiers and keeps optional modifiers in output events. Sending Command+C/V therefore keeps Shift for Giga+C/V without a separate mapping.

The default variant gives its synthetic Caps Lock tap a hold_down_milliseconds value of 200, following Karabiner’s Caps Lock guidance. The Escape variant needs no Caps Lock tap delay. Fn+Caps Lock forwards the physical press and release rather than using to_if_alone.

Manual checks

The regression script checks configuration structure and expected modifier matching; it does not drive Karabiner or prove an app’s behavior. Test these on your keyboard before relying on the mappings:

  1. Enable the base rules you want, leaving the clipboard demo disabled. In Karabiner-EventViewer, hold each mapped key with a letter and compare its modifier flags with the first two tables. Check Shift+Caps Lock with either Shift key, and check both key release orders for stuck modifiers.
  2. Tap Caps Lock alone in each variant (enable only one variant at a time). Expect Caps Lock in the default and Escape in the alternate. Tap Tab for Tab; hold it with a letter for Giga. A chord should not also emit a tap.
  3. If your keyboard exposes Fn, press Fn+Caps Lock to toggle Caps Lock. If it does not, keep the default variant or another Caps Lock binding.
  4. With the demo disabled, confirm Mega+C/V retains Ctrl+Opt+Cmd in EventViewer. With it enabled, select text in a text editor, copy with Caps Lock+C, and paste with Caps Lock+V.
  5. In Google Docs or another web editor that supports Cmd+Shift+V, copy formatted text and paste with Tab+V or Shift+Caps Lock+V. Expect paste without formatting. Check Giga+C produces Cmd+Shift+C in EventViewer; only test its app action where you know what that shortcut does.
  6. Remove the demo and then the base rules from Complex Modifications. Confirm the original shortcuts and key behavior return.