1
0
Fork 0

[Keymap] Niu keymap and README update (#9190)

* - Balance 12 layers now in their final form
- Added Plover layer
- Updated README to use layout images

* Add headings to layer images.

* - Remove redundent TO(_BA) from FC layer
- Link to new FC layer image from README

* Highlight home keys.

* Changes following review.
This commit is contained in:
yttyx 2020-05-26 05:24:16 +01:00 committed by GitHub
parent 9d41281a1d
commit bfe76053ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 87 additions and 193 deletions

View file

@ -1,7 +1,7 @@
# Overview # Overview
This layout is based on Balance Twelve (mirror variant) by Sasha Viminitz. Please see [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/) This layout uses a mirror variant of Balance 12, created by Sasha Viminitz. See [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
for more information. It's designed for left-handers who use their right hand for the mouse. for more information.
## To build ## To build
@ -19,74 +19,14 @@ sudo dfu-programmer atmega32u4 launch
## Layers ## Layers
### Base: ### Balance 12 base (BA) layer
![Base layer](https://i.imgur.com/I0TkIHT.png)
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------. ### Numeric/Punctuation (NP) layer
| P | L | C | D | W | | U | O | Y | K | Q | ![Numeric/Punctuation layer](https://i.imgur.com/GgZ0PCq.png)
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
| N | R | S | T | M | | A | E | I | H | V |
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup |
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------'
| BS P1 | Spc P2 | P3 | | | Sft | |
'-------'--------'-----' '-----'-------'-------'
### P1: Punctuation (1) ### Function/Cursor (FC) layer
![Function/Cursor layer](https://i.imgur.com/zcVID2d.png)
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------. ### Plover (PL) layer
| Esc | | | | | | | | / | ^ | £ | ~ | ![Plover layer](https://i.imgur.com/RikOGXe.png)
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
| Tab | | | | | | & | \ | ` | $ | Ent |
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup |
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
| P1 | | | | | Sft | |
'-------'-------'-----' '-----'------'-------'
### P2: Punctuation (2)
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------.
| Esc | | NC | FV | | | ( | ) | " | ? | |
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent |
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup |
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------'
| BS | P2 | | | | Sft | |
'-------'-------'-----' '-----'-------'-------'
### P3: Punctuation (3)
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------.
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = |
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
| Tab | | | Caps | | | [ | ] | * | - | Ent |
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup |
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
| BS | | P3 | | | Sft | |
'-------'-------'-----' '-----'------'-------'
### Numerals / Cursor control
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
| BS | BA | | | | Sft | |
'------'-------'-----' '-----'------'-------'
### FV: Function keys / Cursor control (Vim)
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
| BS | BA | | | | Sft | |
'-----'-------'-----' '-----'------'-------'

View file

@ -1,141 +1,95 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "keymap_steno.h"
enum layers { enum layers {
BA, // Base (Balance Twelve mirror variant) _BA, // Base (Balance Twelve mirror variant)
P1, // Punctuation (1) _NP, // Numeric/Punctuation
P2, // Punctuation (2) _FC, // Function
P3, // Punctuation (2) _PL // Plover
NC, // Numerals / Cursor control
FV // Function keys / Cursor control (Vim)
}; };
// Abbreviations - base // Abbreviations
#define KX_P1_BSPC LT(P1, KC_BSPC) #define KX_SFT_Z MT(MOD_LSFT, KC_Z)
#define KX_P2_SPC LT(P2, KC_SPC) #define KX_SFT_X MT(MOD_LSFT, KC_X)
#define LT_ESC_FC LT(_FC, KC_ESC)
#define KX_SFT_Z MT(MOD_LSFT, KC_Z)
#define KX_CTL_J MT(MOD_LCTL, KC_J)
#define KX_ALT_F MT(MOD_LALT, KC_F)
#define KX_ALT_DOT MT(MOD_LALT, KC_DOT)
#define KX_CTL_SCLN MT(MOD_LCTL, KC_SCLN)
#define KX_SFT_X MT(MOD_LSFT, KC_X)
#define KX_AT LSFT(KC_QUOT)
#define KX_DQUOT LSFT(KC_2)
#define KX_PIPE LSFT(KC_NUBS)
#define KX_TILDA LSFT(KC_NUHS)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------. /* Base
| P | L | C | D | W | | U | O | Y | K | Q | .--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------| | P | L | C | D | W | | | U | O | Y | K | Q |
| N | R | S | T | M | | A | E | I | H | V | |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------| | N | R | S | T | M | | BS | A | E | I | H | V |
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup | |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------' | Z Sft | J | F | G | B | | Ent | ' @ | , < | . > | X Sft | |
| BS P1 | Spc P2 | P3 | | | Sft | | |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
'-------'--------'-----' '-----'-------'-------' | Ctl | Alt | Sup | NP | Spc | Esc FC | Sft | Sft | Sup | Alt | Ctl | |
*/ '--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
[BA] = LAYOUT( */
KC_P, KC_L, KC_C, KC_D, KC_W, XXXXXXX, XXXXXXX, KC_U, KC_O, KC_Y, KC_K, KC_Q, [_BA] = LAYOUT(
KC_N, KC_R, KC_S, KC_T, KC_M, XXXXXXX, XXXXXXX, KC_A, KC_E, KC_I, KC_H, KC_V, KC_P, KC_L, KC_C, KC_D, KC_W, XXXXXXX, XXXXXXX, KC_U, KC_O, KC_Y, KC_K, KC_Q,
KX_SFT_Z, KX_CTL_J, KX_ALT_F, KC_G, KC_B, XXXXXXX, XXXXXXX, KC_COMM, KX_ALT_DOT, KX_CTL_SCLN, KX_SFT_X, KC_LGUI, KC_N, KC_R, KC_S, KC_T, KC_M, XXXXXXX, KC_BSPC, KC_A, KC_E, KC_I, KC_H, KC_V,
XXXXXXX, XXXXXXX, XXXXXXX, KX_P1_BSPC, KX_P2_SPC, MO(P3), XXXXXXX, KC_RSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX KX_SFT_Z, KC_J, KC_F, KC_G, KC_B, XXXXXXX, KC_ENT, KC_QUOT, KC_COMM, KC_DOT, KX_SFT_X, XXXXXXX,
KC_LCTL, KC_LALT, KC_LGUI, MO(_NP), KC_SPC, LT_ESC_FC, KC_LSFT, KC_LSFT, KC_LGUI, KC_LALT, KC_LCTL, XXXXXXX
), ),
/* P1: Punctuation (1) /* Numeric/Punctuation (NP)
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------. .--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
| Esc | | | | | | | | / | ^ | £ | ~ | | 1 ! | 2 " | 3 £ | 4 $ | 5 % | PL | | 6 ^ | 7 & | 8 * | 9 ( | 0 ) |
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Tab | | | | | | & | \ | ` | $ | Ent | | Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | | [ { | ] } | - _ | ; : | \ | |
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup | | Sft | | | Del | Ins | | | / ? | = + | # ~ | ` | |
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------' |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| P1 | | | | | Sft | | | Ctl | Alt | Sup | NP | Spc | | Sft | Sft | Sup | Alt | Ctl | |
'-------'-------'-----' '-----'------'-------' '--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
*/ */
[P1] = LAYOUT( [_NP] = LAYOUT(
KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KX_PIPE, KC_SLSH, KC_CIRC, KC_HASH, KX_TILDA, KC_1, KC_2, KC_3, KC_4, KC_5, TO(_PL), XXXXXXX, KC_6, KC_7, KC_8, KC_9, KC_0,
KC_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_AMPR, KC_NUBS, KC_GRV, KC_DLR, KC_ENT, KC_TAB, C(KC_X), C(KC_C), C(KC_V), C(KC_Z), XXXXXXX, _______, KC_LBRC, KC_RBRC, KC_MINS, KC_SCLN, KC_NUBS,
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, KC_PERC, KC_LALT, KC_LCTL, KC_LSFT, _______, KC_LSFT, XXXXXXX, XXXXXXX, KC_DEL, KC_INS, XXXXXXX, XXXXXXX, KC_SLSH, KC_EQL, KC_NUHS, KC_GRV, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX _______, _______, _______, _______, _______, XXXXXXX, _______, _______, _______, _______, _______, XXXXXXX
), ),
/* P2: Punctuation (2) /* Function/Cursor (FC)
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------. .--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
| Esc | | NC | FV | | | ( | ) | " | ? | | | F1 | F2 | F3 | F4 | F5 | | | Home | Up | End | PgUp | |
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent | | F6 | F7 | F8 | F9 | F10 | | | Left | Down | Right | PgDn | |
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup | | Sft | | | F11 | F12 | | | PScr | Break | ScLk | Caps | |
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------' |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| BS | P2 | | | | Sft | | | Ctl | Alt | Sup | | Spc | | Sft | Sft | Sup | Alt | Ctl | |
'-------'-------'-----' '-----'-------'-------' '--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
*/ */
[P2] = LAYOUT( [_FC] = LAYOUT(
KC_ESC, XXXXXXX, TO(NC), TO(FV), XXXXXXX, XXXXXXX, XXXXXXX, KC_LPRN, KC_RPRN, KX_DQUOT, KC_QUES, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX,
KC_TAB, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), LCTL(KC_Z), XXXXXXX, XXXXXXX, KC_LCBR, KC_RCBR, KC_QUOT, KC_EXLM, KC_ENT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, XXXXXXX,
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_ENT, XXXXXXX, XXXXXXX, KC_NUHS, KC_LALT, KC_LCTL, KC_LSFT, _______, _______, XXXXXXX, XXXXXXX, KC_F11, KC_F12, XXXXXXX, XXXXXXX, KC_PSCR, KC_BRK, KC_SLCK, KC_CAPS, XXXXXXX,
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX _______, _______, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, XXXXXXX
), ),
/* P3: Punctuation (3) /* Plover (PL)
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------. .--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.--------.
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = | | # | # | # | # | # | BA | # | # | # | # | # | # |
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Tab | | | Caps | | | [ | ] | * | - | Ent | | S | T | P | H | * | | * | F | P | L | T | D |
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------| |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup | | S | K | W | R | * | | * | R | B | G | S | Z |
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------' |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
| BS | | P3 | | | Sft | | | | | | A | O | | E | U | | | | |
'-------'-------'-----' '-----'------'-------' '--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'--------'
*/ */
[P3] = LAYOUT( [_PL] = LAYOUT(
KC_ESC, XXXXXXX, KC_BRK, KC_PSCR, KC_SLCK, XXXXXXX, XXXXXXX, KC_LABK, KC_RABK, KC_PLUS, KC_UNDS, KC_EQL, STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM, TO(_BA), STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM, STN_NUM,
KC_TAB, XXXXXXX, XXXXXXX, KC_CAPS, XXXXXXX, XXXXXXX, XXXXXXX, KC_LBRC, KC_RBRC, KC_ASTR, KC_MINS, KC_ENT, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, XXXXXXX, STN_ST1, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR,
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, KX_AT, KC_LALT, KC_LCTL, KC_LSFT, _______, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, XXXXXXX, STN_ST2, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR,
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, XXXXXXX, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX XXXXXXX, XXXXXXX, XXXXXXX, STN_A, STN_O, XXXXXXX, STN_E, STN_U, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
),
/* NC: Numerals / Cursor control
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
| BS | BA | | | | Sft | |
'------'-------'-----' '-----'------'-------'
*/
[NC] = LAYOUT(
KC_1, KC_2, KC_3, KC_4, KC_5, XXXXXXX, XXXXXXX, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX,
KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, XXXXXXX,
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_DOT, XXXXXXX, XXXXXXX, KC_INS, KC_LALT, KC_LCTL, KC_LSFT, _______,
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
),
/* FV: Function keys / Cursor control (Vim)
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
| BS | BA | | | | Sft | |
'-----'-------'-----' '-----'------'-------'
*/
[FV] = LAYOUT(
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX, XXXXXXX, KC_0, KC_K, KC_DLR, LCTL(KC_B), XXXXXXX,
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, XXXXXXX, KC_H, KC_J, KC_L, LCTL(KC_F), XXXXXXX,
KC_LSFT, KC_LCTL, KC_LALT, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, KC_LALT, KC_LCTL, KC_LSFT, _______,
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
) )
}; };
void matrix_init_user() {
steno_set_mode(STENO_MODE_GEMINI);
}

View file

@ -6,5 +6,5 @@ MIDI_ENABLE = no
MOUSEKEY_ENABLE = no MOUSEKEY_ENABLE = no
NKRO_ENABLE = yes NKRO_ENABLE = yes
RGBLIGHT_ENABLE = no RGBLIGHT_ENABLE = no
STENO_ENABLE = no STENO_ENABLE = yes
VIRTSER_ENABLE = no VIRTSER_ENABLE = yes