2018-01-12 23:35:33 +06:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
#include "debug.h"
|
|
|
|
#include "action_layer.h"
|
|
|
|
#include "version.h"
|
2018-02-13 02:47:32 +06:00
|
|
|
#include "keymap_steno.h"
|
|
|
|
#ifndef MIDI_ENABLE
|
|
|
|
#error "Midi is not enabled"
|
|
|
|
#endif
|
|
|
|
#define QWERTY 0 // qwerty layer
|
|
|
|
#define HALFQWERTY 1 // mirrored qwerty layer
|
|
|
|
#define DVORAK 2 // dvorak layer
|
|
|
|
#define HALFDVORAK 3 // mirrored dvorak layer
|
2018-06-06 22:52:56 +06:00
|
|
|
//no layer 4
|
2018-01-12 23:35:33 +06:00
|
|
|
#define SYMB 5 // symbols
|
2018-02-02 10:08:18 +06:00
|
|
|
#define HALFSYMB 6 // media keys
|
|
|
|
#define PLVR 7 // steno plover layout
|
2018-06-06 22:52:56 +06:00
|
|
|
#define SHORTCUTS 8 //layer with shortcut keys and other layer nav
|
|
|
|
#define FUNCTION 9 //all F-keys, all day
|
|
|
|
#define PROPERSTENO 10 //real steno layout
|
2018-01-12 23:35:33 +06:00
|
|
|
|
|
|
|
enum custom_keycodes {
|
|
|
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
|
|
|
EPRM,
|
|
|
|
VRSN,
|
|
|
|
RGB_SLD
|
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* Keymap 0: qwerty
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* | ESC | 1 | 2 | 3 | 4 | 5 | RMB | | \ | 6 | 7 | 8 | 9 | 0 | BSPC |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | TAB | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | ' |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | BkSp | A | S | D | F | G |------| |------| H | J | K | L | ; |ENTER |
|
2018-02-02 10:08:18 +06:00
|
|
|
* |--------+------+------+------+------+------| - | | = |------+------+------+------+------+--------|
|
2018-01-12 23:35:33 +06:00
|
|
|
* | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-02-02 10:08:18 +06:00
|
|
|
* |LCTRL|ALT |CTLShTab|CTL-TAB| LGui| | RGui| UP | DOWN | ALT | RCTRL |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* |Symbol|LMB | |Plover|HalfSymb|
|
2018-01-12 23:35:33 +06:00
|
|
|
* ,------|------|------| |------+--------+------.
|
2018-02-13 02:47:32 +06:00
|
|
|
* | | |MU_TOG| | PgUp | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Space|DELETE|------| |------| Tab |Enter |
|
|
|
|
* |mirror| | End | | PgDn | |mirror|
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[QWERTY] = LAYOUT_ergodox( // layer 0 : default
|
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_BTN2,
|
|
|
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_EQL,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MINUS,
|
|
|
|
KC_LCTRL, KC_LALT, LCTL(LSFT(KC_TAB)),LCTL(KC_TAB), MO(SHORTCUTS),
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_LGUI, KC_BTN1,
|
2018-02-13 02:47:32 +06:00
|
|
|
MU_ON,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_SPACE,KC_DEL,KC_END,
|
2018-01-12 23:35:33 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_BTN2, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_SLASH,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_EQL,KC_N, KC_M, KC_COMM,KC_DOT, KC_SLASH, KC_RSFT,
|
2018-06-06 22:52:56 +06:00
|
|
|
MO(SHORTCUTS), KC_UP,KC_DOWN,KC_RALT, KC_RCTRL,
|
|
|
|
KC_BTN1, KC_RGUI,
|
2018-02-13 02:47:32 +06:00
|
|
|
MU_OFF,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_PGDN,KC_TAB, LT(HALFQWERTY, KC_ENT)
|
|
|
|
),
|
|
|
|
/* Keymap 1: mirrored qwerty
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | BSPC | 0 | 9 | 8 | 7 | 6 | \ | | ` | 5 | 4 | 3 | 2 | 1 | ESC |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | ' | P | O | I | U | Y | ] | | [ | T | R | E | W | Q | TAB |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | ENTER | ; | L | K | J | H |------| |------| G | F | D | S | A | BSPC |
|
2018-02-02 10:08:18 +06:00
|
|
|
* |--------+------+------+------+------+------| - | | = |------+------+------+------+------+--------|
|
2018-01-12 23:35:33 +06:00
|
|
|
* | LShift | / | . | , | M | N | | | | B | V | C | X | Z | RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-02-02 10:08:18 +06:00
|
|
|
* |LCTRL|ALT |CTLShTab|CTL-TAB| LGui| | RGui| UP | DOWN | ALT | RCTRL |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | | | | |
|
2018-01-12 23:35:33 +06:00
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | Home | | PgUp | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Space|DELETE|------| |------| Tab |Enter |
|
|
|
|
* |mirror| | End | | PgDn | |mirror|
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[HALFQWERTY] = LAYOUT_ergodox( // layer 0 : default
|
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_BSPC, KC_0, KC_9, KC_8, KC_7, KC_6, KC_TRNS,
|
|
|
|
KC_BSLS, KC_P, KC_O, KC_I, KC_U, KC_Y, KC_LBRC,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_ENT, KC_SCLN, KC_L, KC_K, KC_J, KC_H,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_LSFT, KC_SLASH, KC_DOT, KC_COMM,KC_M, KC_N, KC_RBRC,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_LCTRL, KC_LALT, LCTL(LSFT(KC_TAB)),LCTL(KC_TAB), KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_TRNS,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_TRANSPARENT,KC_DEL,KC_END,
|
2018-01-12 23:35:33 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_5, KC_4, KC_3, KC_2, KC_1, KC_BSPC,
|
|
|
|
KC_MINUS, KC_T, KC_R, KC_E, KC_W, KC_Q, KC_BSLS,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_G, KC_F, KC_D, KC_S, KC_A, KC_ENT,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_EQL,KC_B, KC_V, KC_C, KC_X, KC_Z, KC_RSFT,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS, KC_UP,KC_DOWN,KC_RALT, KC_RCTRL,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_TRANSPARENT, KC_TRNS,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_PGDN,KC_TAB, KC_TRANSPARENT
|
|
|
|
),
|
2018-06-06 22:52:56 +06:00
|
|
|
/* Keymap 2: dvorak
|
2018-01-12 23:35:33 +06:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | ESC | 1 | 2 | 3 | 4 | 5 | ` | | \ | 6 | 7 | 8 | 9 | 0 | BSPC |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | TAB | ' | , | . | P | Y | [ | | ] | F | G | C | R | L | / |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | BkSp | A | O | E | U | I |------| |------| D | H | T | N | S |ENTER |
|
|
|
|
* |--------+------+------+------+------+------| - | | = |------+------+------+------+------+--------|
|
2018-01-12 23:35:33 +06:00
|
|
|
* | LShift | ; | Q | J | K | X | | | | B | M | W | V | Z | RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-02-13 02:47:32 +06:00
|
|
|
* |LCTRL|ALT |CTLShTab|CTL-TAB| LGui| | Mouse| UP | DOWN | ALT | RCTRL |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Alt | | | |Alt |
|
2018-01-12 23:35:33 +06:00
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | Home | | PgUp | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Space|DELETE|------| |------| Tab |Enter |
|
|
|
|
* |mirror| | End | | PgDn | |mirror|
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
2018-06-06 22:52:56 +06:00
|
|
|
[DVORAK] = LAYOUT_ergodox( // layer 2 : dvorak
|
2018-01-12 23:35:33 +06:00
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS,
|
|
|
|
KC_TAB, KC_QUOTE, KC_COMM,KC_DOT, KC_P, KC_Y, KC_MINUS,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_BSPC, KC_A, KC_O, KC_E, KC_U, KC_I,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_EQL,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_LCTRL, KC_LALT, LCTL(LSFT(KC_TAB)),LCTL(KC_TAB), KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_TRANSPARENT,
|
|
|
|
KC_UP,
|
|
|
|
LT(HALFDVORAK, KC_SPACE),KC_DEL,KC_DOWN,
|
2018-01-12 23:35:33 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
|
|
|
KC_LBRC, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLASH,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_D, KC_H, KC_T, KC_N, KC_S, KC_ENT,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_RBRC,KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS, KC_UP,KC_DOWN,KC_RALT, KC_RCTRL,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRANSPARENT, KC_TRANSPARENT,
|
|
|
|
KC_PGUP,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_PGDN,KC_TAB, LT(HALFDVORAK, KC_ENT)
|
|
|
|
),
|
|
|
|
/* Keymap 3: mirrored dvorak
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | BSPC | 0 | 9 | 8 | 7 | 6 | \ | | ` | 5 | 4 | 3 | 2 | 1 | ESC |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | / | L | R | C | G | F | L1 | | L1 | Y | P | . | , | ' | TAB |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | ENTER | S | N | T | H | D |------| |------| I | U | E | O | A |BSPC |
|
|
|
|
* |--------+------+------+------+------+------| = | | - |------+------+------+------+------+--------|
|
2018-01-12 23:35:33 +06:00
|
|
|
* | LShift | Z | V | W | M | B | | | | X | K | J | Q | ; | RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-02-13 02:47:32 +06:00
|
|
|
* |LCTRL|ALT |CTLShTab|CTL-TAB| LGui| | MOUSE| UP | DOWN | ALT | RCTRL |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Alt | | | |Alt |
|
2018-01-12 23:35:33 +06:00
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | Home | | PgUp | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* | Space|DELETE|------| |------| Tab |Enter |
|
|
|
|
* |mirror| | End | | PgDn | |mirror|
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[HALFDVORAK] = LAYOUT_ergodox( // layer 0 : default
|
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_BSPC, KC_0, KC_9, KC_8, KC_7, KC_6, KC_TRNS,
|
|
|
|
KC_SLASH, KC_L, KC_R, KC_C, KC_G, KC_F, KC_LBRC,
|
2018-01-12 23:35:33 +06:00
|
|
|
KC_ENT, KC_S, KC_N, KC_T, KC_H, KC_D,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_LSFT, KC_Z, KC_V, KC_W, KC_M, KC_B, KC_RBRC,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_LCTRL, KC_LALT, LCTL(LSFT(KC_TAB)),LCTL(KC_TAB), KC_TRNS,
|
|
|
|
KC_TRANSPARENT, KC_TRANSPARENT,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRANSPARENT,KC_ENT,KC_TRNS,
|
2018-01-12 23:35:33 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_5, KC_4, KC_3, KC_2, KC_5, KC_ESC,
|
|
|
|
KC_MINUS, KC_Y, KC_P, KC_DOT, KC_COMM,KC_P, KC_TAB,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_I, KC_U, KC_E, KC_O, KC_A, KC_BSPC,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_EQL,KC_X, KC_K, KC_J, KC_Q, KC_SCLN, KC_RSFT,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS, KC_UP,KC_DOWN,KC_RALT, KC_RCTRL,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_TRANSPARENT, KC_TRNS,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS,KC_TAB, KC_TRANSPARENT
|
2018-01-12 23:35:33 +06:00
|
|
|
),
|
|
|
|
/* Keymap 5: Symbol Layer
|
|
|
|
*
|
|
|
|
* ,---------------------------------------------------. ,--------------------------------------------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* |Version | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |BkSp |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | / | \ | { | } | | | | | | Up | 7 | 8 | 9 | * | / |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | ' | ; | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | - | ENTER |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | - | = | [ | ] | ~ | | | | & | 1 | 2 | 3 | + | |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* | EPRM | | | | | | | . | 0 | = | |
|
|
|
|
* `-----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | | | | |
|
2018-01-12 23:35:33 +06:00
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* |mirror| |------| |------| |mirror|
|
|
|
|
* |space | | | | | |enter |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
|
|
|
// SYMBOLS
|
|
|
|
[SYMB] = LAYOUT_ergodox(
|
|
|
|
// left hand
|
2018-02-02 10:08:18 +06:00
|
|
|
VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
|
|
|
|
KC_NO,KC_SLASH,KC_BSLS, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS,
|
|
|
|
KC_NO,KC_QUOT,KC_SCLN, KC_LPRN,KC_RPRN,KC_GRV,
|
|
|
|
KC_NO,KC_MINUS,KC_EQL,KC_LBRC,KC_RBRC,KC_TILD,KC_NO,
|
|
|
|
EPRM,KC_NO,KC_NO,KC_NO,KC_TRNS,
|
|
|
|
KC_TRNS,KC_NO,
|
|
|
|
KC_NO,
|
|
|
|
LT(HALFSYMB, KC_SPACE),KC_NO,KC_NO,
|
|
|
|
// right hand
|
|
|
|
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC,
|
|
|
|
KC_NO, KC_UP, KC_KP_7, KC_KP_8, KC_KP_9,KC_KP_ASTERISK, KC_KP_SLASH,
|
|
|
|
KC_DOWN, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_ENTER,
|
|
|
|
KC_NO,KC_AMPR,KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_NO,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,KC_DOT, KC_0, KC_KP_EQUAL, KC_NO,
|
2018-06-06 22:52:56 +06:00
|
|
|
BL_OFF, KC_TRNS,
|
|
|
|
BL_ON,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO, KC_NO, LT(HALFSYMB, KC_ENT)
|
|
|
|
),
|
|
|
|
/* Keymap 6: Mirrored Symbol Layer
|
|
|
|
*
|
|
|
|
* ,---------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* |delete | F12 | F11 | F10 | F9 | F8 | F7 | | F6 | F5 | F4 | F3 | F2 | F1 |BkSp |
|
|
|
|
* |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
|
|
|
* | | | 7 | 8 | 9 | * | / | | | | | { | } | / | \ | |
|
|
|
|
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | | | 4 | 5 | 6 | - |------| |------| ` | ( | ) | ; | ' | |
|
|
|
|
* |---------+------+------+------+------+------|enter | | |------+------+------+------+------+--------|
|
|
|
|
* | | | 1 | 2 | 3 | + | | | | ~ | [ | ] | = | - | |
|
|
|
|
* `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* | EPRM | | 0 | . | = | | | | | | |
|
|
|
|
* `-----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
|
|
|
* | | | | | |
|
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
|
|
|
* | | |------| |------| | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
|
|
|
// SYMBOLS
|
|
|
|
[HALFSYMB] = LAYOUT_ergodox(
|
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_BSPC, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO,KC_NO,KC_KP_7, KC_KP_8, KC_KP_9,KC_KP_ASTERISK,KC_KP_SLASH,
|
|
|
|
KC_ENTER,KC_NO,KC_KP_4, KC_KP_5, KC_KP_6,KC_KP_MINUS,
|
|
|
|
KC_NO,KC_NO,KC_KP_1, KC_KP_2, KC_KP_3,KC_KP_PLUS,KC_KP_ENTER,
|
|
|
|
EPRM,KC_NO,KC_KP_0,KC_KP_DOT,KC_KP_EQUAL,
|
|
|
|
KC_TRNS,KC_NO,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_TRANSPARENT,KC_NO,KC_NO,
|
2018-01-12 23:35:33 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_BSPC,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO,KC_PIPE,KC_LCBR,KC_RCBR, KC_SLASH, KC_BSLS, KC_NO,
|
|
|
|
KC_GRV,KC_LPRN,KC_RPRN, KC_SCLN, KC_QUOT, KC_NO,
|
|
|
|
KC_NO, KC_TILD,KC_LBRC,KC_RBRC, KC_EQL, KC_MINUS, KC_NO,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,KC_NO, KC_NO, KC_NO, KC_NO,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO, KC_TRNS,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO, KC_NO, KC_TRANSPARENT
|
2018-01-12 23:35:33 +06:00
|
|
|
),
|
2018-02-02 10:08:18 +06:00
|
|
|
/* Keymap 7: Steno for Plover from https://github.com/shayneholmes/tmk_keyboard/commit/11290f8489013018f778627db725160c745e75bd
|
2018-01-12 23:35:33 +06:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | q | w | e | r | t |------| |------| y | u | i | o | p | [ |
|
2018-01-12 23:35:33 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | a | s | d | f | g | | | | h | j | k | l | ; | ' |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | | | | | | | | | | |
|
2018-01-12 23:35:33 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
|
|
|
* | | | | | |
|
|
|
|
* ,------|------|------| |------+------+------.
|
2018-02-02 10:08:18 +06:00
|
|
|
* | | | | | | | |
|
|
|
|
* | c | v |------| |------| n | m |
|
2018-01-12 23:35:33 +06:00
|
|
|
* | | | | | | | |
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
2018-02-02 10:08:18 +06:00
|
|
|
|
2018-06-13 20:58:23 +06:00
|
|
|
[PLVR] = LAYOUT_ergodox( // layout: layer 7: Steno for Plover
|
2018-02-02 10:08:18 +06:00
|
|
|
// left hand
|
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS,
|
|
|
|
KC_NO, KC_Q, KC_W, KC_E, KC_R, KC_T,
|
|
|
|
KC_NO, KC_A, KC_S, KC_D, KC_F, KC_G, KC_NO,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TRNS, KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_NO,
|
|
|
|
KC_C, KC_V, KC_NO,
|
2018-02-02 10:08:18 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
|
|
|
|
KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
|
|
|
|
KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
|
|
|
|
KC_NO, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
2018-02-02 10:08:18 +06:00
|
|
|
KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_NO, KC_N, KC_M
|
2018-02-13 02:47:32 +06:00
|
|
|
),
|
2018-06-06 22:52:56 +06:00
|
|
|
|
2018-02-13 02:47:32 +06:00
|
|
|
/* Keymap 8: shortcuts
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | ESC | 1 | 2 | 3 | 4 | 5 | LEFT | | RIGHT| 6 | 7 | 8 | 9 | 0 | BSPC |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
|
|
|
* | TAB | Q | W | E | R | T | L1 | | L1 | Y | U | I | O | P | \ |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | BkSp | A | S | D | F | G |------| |------| H | J | K | L | ; |ENTER |
|
|
|
|
* |--------+------+------+------+------+------| - | | = |------+------+------+------+------+--------|
|
|
|
|
* | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* |LCTRL|ALT |CTLShTab|CTL-TAB| | | RGui| UP | DOWN | ALT | RCTRL |
|
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* |SYMBOLS|Dvorak| |Steno |Plover|
|
2018-02-13 02:47:32 +06:00
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | Home | | PgUp | | |
|
|
|
|
* | Space|DELETE|------| |------| Tab |Enter |
|
|
|
|
* |mirror| | End | | PgDn | |mirror|
|
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[SHORTCUTS] = LAYOUT_ergodox( // layer 0 : default
|
|
|
|
// left hand
|
2018-06-06 22:52:56 +06:00
|
|
|
RGB_MODE_KNIGHT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT,
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_TAB, LCTL(KC_Q), LCTL(KC_W),LCTL(KC_E),LCTL(KC_R),LCTL(KC_T), KC_NO,
|
|
|
|
KC_BSPC, LCTL(KC_A), LCTL(KC_S),LCTL(KC_D),LCTL(KC_F),LCTL(KC_G),
|
|
|
|
KC_LSFT, LCTL(KC_Z), LCTL(KC_X),LCTL(KC_C),LCTL(KC_V),LCTL(KC_B), KC_MINUS,
|
2018-06-06 22:52:56 +06:00
|
|
|
RESET, KC_LALT, LCTL(LSFT(KC_TAB)),LCTL(KC_TAB), KC_TRANSPARENT,
|
|
|
|
TG(SYMB), TG(DVORAK),
|
2018-02-13 02:47:32 +06:00
|
|
|
|
2018-06-06 22:52:56 +06:00
|
|
|
TG(FUNCTION),
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_NO,KC_NO,KC_NO,
|
2018-06-06 22:52:56 +06:00
|
|
|
// right hand
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_RGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
2018-06-06 22:52:56 +06:00
|
|
|
TG(SYMB),LCTL(KC_Y),LCTL(KC_U),LCTL(KC_I),LCTL(KC_O),LCTL(KC_P),KC_BSLS,
|
|
|
|
LCTL(KC_H),LCTL(KC_J),LCTL(KC_K),LCTL(KC_L),LCTL(KC_SCLN),KC_ENT,
|
|
|
|
KC_EQL,LCTL(KC_N),LCTL(KC_M),LCTL(KC_COMM),LCTL(KC_DOT),LCTL(KC_SLASH),KC_RSFT,
|
|
|
|
KC_TRNS, KC_UP,KC_DOWN,KC_RALT, RESET,
|
|
|
|
TG(PROPERSTENO),TG(PLVR),
|
2018-02-13 02:47:32 +06:00
|
|
|
KC_NO,
|
|
|
|
KC_NO,KC_NO, KC_NO
|
|
|
|
),
|
2018-06-06 22:52:56 +06:00
|
|
|
/* Keymap 9: Functions
|
2018-02-13 02:47:32 +06:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* | F1 | F2 | F3 | F4 | F5 | F6 | | | | F1 | F2 | F3 | F4 | F5 | F6 |
|
2018-02-13 02:47:32 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-06-06 22:52:56 +06:00
|
|
|
* | F7 | F8 | F9 | F10 | F11 | F12 | | | | F7 | F8 | F9 | F10 | F11 | F12 |
|
2018-02-13 02:47:32 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-06-06 22:52:56 +06:00
|
|
|
* | F13 | F14 | F15 | F16 | F17 | F18 |------| |------| F13 | F14 | F15 | F16 | F17 | F18 |
|
2018-02-13 02:47:32 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-06-06 22:52:56 +06:00
|
|
|
* | F19 | F20 | F21 | F22 | F23 | F24 | | | | F19 | F20 | F21 | F22 | F23 | F24 |
|
2018-02-13 02:47:32 +06:00
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
|
|
|
* | | | | | |
|
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
2018-06-06 22:52:56 +06:00
|
|
|
* | c | v |------| |------| n | m |
|
2018-02-13 02:47:32 +06:00
|
|
|
* | | | | | | | |
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
2018-06-06 22:52:56 +06:00
|
|
|
|
|
|
|
[FUNCTION] = LAYOUT_ergodox( // layout: layer 9
|
|
|
|
// left hand
|
|
|
|
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_NO,
|
|
|
|
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO,
|
|
|
|
KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18,
|
|
|
|
KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_NO,
|
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_NO, KC_NO, KC_NO,
|
|
|
|
// right hand
|
|
|
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
|
|
|
|
KC_TRNS, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
|
|
|
|
KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18,
|
|
|
|
KC_NO,KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
|
|
|
|
KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_NO, KC_NO, KC_NO
|
2018-01-12 23:35:33 +06:00
|
|
|
),
|
2018-06-06 22:52:56 +06:00
|
|
|
/* Keymap 10: Steno
|
2018-02-02 10:08:18 +06:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* | | | | | | | | | | | | | | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-06-06 22:52:56 +06:00
|
|
|
* | | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2018-06-06 22:52:56 +06:00
|
|
|
* | | q | w | e | r | t |------| |------| y | u | i | o | p | [ |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | | a | s | d | f | g | | | | h | j | k | l | ; | ' |
|
2018-02-02 10:08:18 +06:00
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-06-06 22:52:56 +06:00
|
|
|
* | | | | | | | | | | | |
|
2018-02-02 10:08:18 +06:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-06-06 22:52:56 +06:00
|
|
|
* | | | | | |
|
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
|
|
|
* | c | v |------| |------| n | m |
|
|
|
|
* | | | | | | | |
|
|
|
|
* `--------------------' `--------------------'
|
2018-02-02 10:08:18 +06:00
|
|
|
*/
|
|
|
|
|
2018-06-06 22:52:56 +06:00
|
|
|
[PROPERSTENO] = LAYOUT_ergodox( // layout: layer 10
|
|
|
|
// left hand
|
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
|
|
|
STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, STN_N6, KC_NO,
|
|
|
|
STN_FN, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1,
|
|
|
|
KC_NO, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, KC_NO,
|
|
|
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
STN_A, STN_O, KC_NO,
|
2018-02-02 10:08:18 +06:00
|
|
|
// right hand
|
2018-06-06 22:52:56 +06:00
|
|
|
KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
|
|
|
|
KC_TRNS, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, STN_NC,
|
|
|
|
STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR,
|
|
|
|
KC_NO,STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR,
|
|
|
|
KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_NO, STN_E, STN_U
|
|
|
|
),
|
|
|
|
|
2018-01-12 23:35:33 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
{
|
|
|
|
// MACRODOWN only works in this function
|
|
|
|
switch(id) {
|
|
|
|
case 0:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
if (record->event.pressed) { // For resetting EEPROM
|
|
|
|
eeconfig_init();
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
switch (keycode) {
|
|
|
|
// dynamically generate these.
|
|
|
|
case EPRM:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
eeconfig_init();
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
case VRSN:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
case RGB_SLD:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
rgblight_mode(1);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Runs just one time when the keyboard initializes.
|
|
|
|
void matrix_init_user(void) {
|
2018-02-13 02:47:32 +06:00
|
|
|
steno_set_mode(STENO_MODE_GEMINI); // or STENO_MODE_BOLT
|
2018-01-12 23:35:33 +06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Runs constantly in the background, in a loop.
|
|
|
|
void matrix_scan_user(void) {
|
|
|
|
|
|
|
|
uint8_t layer = biton32(layer_state);
|
|
|
|
|
|
|
|
ergodox_board_led_off();
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
switch (layer) {
|
|
|
|
// TODO: Make this relevant to the ErgoDox EZ.
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
// none
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|