qmk

QMK Firmware
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

keymap.c (2097B)


      1 #include QMK_KEYBOARD_H
      2 #include "keymap_steno.h"
      3 
      4 #define ST_BOLT QK_STENO_BOLT
      5 #define ST_GEM  QK_STENO_GEMINI
      6 
      7 enum keyboard_layers {
      8   _QWERTY,
      9   _RAISE,
     10   _LOWER,
     11   _PLOVER,
     12   _ADJUST
     13 };
     14 
     15 #define ADJ_Z   LT(_ADJUST, KC_Z)
     16 #define RS_BSPC LT(_RAISE, KC_BSPC)
     17 #define LW_SPC LT(_LOWER, KC_SPC)
     18 #define MO_ADJ  MO(_ADJUST)
     19 #define TG_PLV  TG(_PLOVER)
     20 #define OS_LCTL OSM(MOD_LCTL)
     21 #define OS_LALT OSM(MOD_LALT)
     22 #define OS_LGUI OSM(MOD_LGUI)
     23 
     24 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     25 
     26   [_QWERTY] = LAYOUT_ortho_3x10(
     27     KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,    KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,
     28     KC_A,    KC_S,    KC_D,    KC_F,    KC_G,    KC_H,    KC_J,    KC_K,    KC_L,    KC_RSFT,
     29     ADJ_Z,   KC_X,    KC_C,    KC_V,    RS_BSPC, LW_SPC,  KC_B,    KC_N,    KC_M,    KC_ENT
     30   ),
     31 
     32   [_RAISE] = LAYOUT_ortho_3x10(
     33     KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_7,    KC_9,    KC_0,
     34     KC_ESC,  KC_MINS, KC_EQL,  _______, KC_LBRC, KC_RBRC, _______, KC_QUOT, KC_SCLN, _______,
     35     OS_LCTL, OS_LGUI, OS_LALT, KC_GRV,  _______, KC_TAB,  KC_BSLS, KC_COMM, KC_DOT,  KC_SLSH
     36   ),
     37 
     38   [_LOWER] = LAYOUT_ortho_3x10(
     39     KC_F1,   KC_F2,   KC_F3,   KC_F4,   XXXXXXX, KC_PGUP, KC_HOME, KC_UP,   KC_END,  XXXXXXX,
     40     KC_F5,   KC_F6,   KC_F7,   KC_F8,   XXXXXXX, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, _______,
     41     KC_F9,   KC_F10,  KC_F11,  KC_F12,  KC_DEL,  _______, OS_LALT, OS_LGUI, OS_LCTL, KC_CAPS
     42   ),
     43 
     44   [_PLOVER] = LAYOUT_ortho_3x10(
     45     STN_S1,  STN_TL,  STN_PL,  STN_HL,  STN_ST1, STN_FR,  STN_PR,  STN_LR,  STN_TR,  STN_DR,
     46     STN_S2,  STN_KL,  STN_WL,  STN_RL,  STN_ST2, STN_RR,  STN_BR,  STN_GR,  STN_SR,  STN_ZR,
     47     MO_ADJ,  STN_NUM, STN_A,   STN_O,   STN_NUM, STN_E,   STN_U,   STN_NUM, STN_NUM, XXXXXXX
     48   ),
     49 
     50   [_ADJUST] = LAYOUT_ortho_3x10(
     51     XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, ST_BOLT, ST_GEM,  TG_PLV,
     52     XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
     53     XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET
     54   ),
     55 
     56 };