Simple Ergonomics

This is an example keyboard that performs simple key remapping to get slightly better ergonomics. The CAPSLOCK key doesn’t deserve to be 1 key away from the home row…

Before After
KC_ESC KC_CAPSLOCK
KC_TAB KC_ESC
KC_CAPSLOCK KC_TAB

In addition to simple key remapping, the left and right shift keys are mapped to mapped to space cadet keys. The behavior of space cadet keys depends on whether the key is held or tapped:

  New Behavior
Old Behavior Held Tapped
LEFTSHIFT LEFTSHIFT (
RIGHTSHIFT RIGHTSHIFT )

Layers

{
  "layer_order": [ "base" ],
  "base": {
    "enabled": true,
    "keys" : [
      [ "KC_CAPSLOCK" ],
      [ "KC_ESC" ],
      [ "KC_TAB" ],
      [ "SPACECADET(WRAP(KC_LEFTSHIFT,KC_9),KC_LEFTSHIFT)" ],
      [ "SPACECADET(WRAP(KC_RIGHTSHIFT,KC_0),KC_RIGHTSHIFT)" ]
    ]
  }
}

Matrix

{
  "matrix": [
    [ "KC_ESC" ],
    [ "KC_TAB" ],
    [ "KC_CAPSLOCK" ],
    [ "KC_LEFTSHIFT" ],
    [ "KC_RIGHTSHIFT" ]
  ]
}