aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Keene <git@nicholaskeene.com>2017-02-15 22:33:04 -0600
committerNicholas Keene <git@nicholaskeene.com>2017-02-15 22:33:04 -0600
commitaf942f2e57023a469d2f617839b3b7cb7eec798a (patch)
tree4bc325ac9b64d7f0359e60a1b50fdaea4e61e403
parent54785c1976590dc3081f06ca49747dfcb6ecd3b3 (diff)
downloadqmk_firmware-af942f2e57023a469d2f617839b3b7cb7eec798a.tar.gz
qmk_firmware-af942f2e57023a469d2f617839b3b7cb7eec798a.zip
The Ordinary Layout is the best one, the one you are looking for. Really. Check it out.
-rw-r--r--keyboards/ergodox/keymaps/ordinary/keymap.c46
-rw-r--r--keyboards/ergodox/keymaps/ordinary/ordinary-symbol.pngbin89582 -> 90642 bytes
-rw-r--r--keyboards/ergodox/keymaps/ordinary/ordinary-symbol.txt12
-rw-r--r--keyboards/ergodox/keymaps/ordinary/readme.md14
4 files changed, 43 insertions, 29 deletions
diff --git a/keyboards/ergodox/keymaps/ordinary/keymap.c b/keyboards/ergodox/keymaps/ordinary/keymap.c
index b79f0f064..8f17ee276 100644
--- a/keyboards/ergodox/keymaps/ordinary/keymap.c
+++ b/keyboards/ergodox/keymaps/ordinary/keymap.c
@@ -19,7 +19,9 @@
19#define RSpec 15 // right special-shift key 19#define RSpec 15 // right special-shift key
20 20
21#define NotEq 16 // != macro 21#define NotEq 16 // != macro
22#define Point 17 // -> macro 22#define GrtEq 17 // >= macro
23#define LesEq 18 // <= macro
24#define DeRef 19 // -> macro
23 25
24#define MUL 20 // mouse up left 26#define MUL 20 // mouse up left
25#define MUR 21 // mouse up right 27#define MUR 21 // mouse up right
@@ -71,7 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
71,F(LMdia) ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_LBRC 73,F(LMdia) ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,KC_LBRC
72,M(LSymb) ,LT(RBASE, KC_A),KC_S ,KC_D ,LT(RBASE, KC_F) ,KC_G 74,M(LSymb) ,LT(RBASE, KC_A),KC_S ,KC_D ,LT(RBASE, KC_F) ,KC_G
73,KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,LSFT(KC_TAB) 75,KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,LSFT(KC_TAB)
74,KC_SCLN ,MEH_T(KC_NO) ,ALL_T(KC_NO),KC_LALT,KC_LGUI 76,KC_LCTL ,MEH_T(KC_NO) ,ALL_T(KC_NO),KC_LALT,KC_LGUI
75 ,KC_HOME,KC_END 77 ,KC_HOME,KC_END
76 ,KC_PGUP 78 ,KC_PGUP
77 ,KC_BSPC,KC_DEL ,KC_PGDN 79 ,KC_BSPC,KC_DEL ,KC_PGDN
@@ -100,9 +102,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
100 * | ; | & | * | < | > | | 0 | . | = | + | Enter | 102 * | ; | & | * | < | > | | 0 | . | = | + | Enter |
101 * `-----------------------------------' `-----------------------------------' 103 * `-----------------------------------' `-----------------------------------'
102 * ,-------------. ,-------------. 104 * ,-------------. ,-------------.
103 * ||||||||||||||| ||||||||||||||| 105 * | |||| | |||| | | |||| | |||| |
104 * ,------|------|------| |------+------+------. 106 * ,------|------|------| |------+------+------.
105 * | Plus | Equal|||||||| |||||||| Under| Dash | 107 * | Plus | Equal| |||| | | |||| | Under| Dash |
106 * | | |------| |------| Score| | 108 * | | |------| |------| Score| |
107 * | + | = | != | | -> | _ | - | 109 * | + | = | != | | -> | _ | - |
108 * `--------------------' `--------------------' 110 * `--------------------' `--------------------'
@@ -113,8 +115,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
113,KC_TRNS ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_AMPR ,LSFT(KC_COMM) 115,KC_TRNS ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_AMPR ,LSFT(KC_COMM)
114,KC_TRNS ,KC_HASH ,KC_DLR ,KC_LPRN ,KC_RPRN ,KC_GRV 116,KC_TRNS ,KC_HASH ,KC_DLR ,KC_LPRN ,KC_RPRN ,KC_GRV
115,KC_TRNS ,KC_PERC ,KC_CIRC ,KC_LBRC ,KC_RBRC ,KC_TILD ,KC_TAB 117,KC_TRNS ,KC_PERC ,KC_CIRC ,KC_LBRC ,KC_RBRC ,KC_TILD ,KC_TAB
116,KC_LCTL ,KC_AMPR ,KC_ASTR ,LSFT(KC_COMM),LSFT(KC_DOT) 118,KC_SCLN ,KC_AMPR ,KC_ASTR ,LSFT(KC_COMM),LSFT(KC_DOT)
117 ,KC_NO ,KC_NO 119 ,M(GrtEq),M(LesEq)
118 ,KC_NO 120 ,KC_NO
119 ,KC_PLUS ,KC_EQL ,M(NotEq) 121 ,KC_PLUS ,KC_EQL ,M(NotEq)
120 // right hand 122 // right hand
@@ -125,21 +127,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
125 ,KC_0 ,KC_DOT ,KC_EQL,KC_PLUS ,KC_ENT 127 ,KC_0 ,KC_DOT ,KC_EQL,KC_PLUS ,KC_ENT
126 ,KC_NO ,KC_NO 128 ,KC_NO ,KC_NO
127 ,KC_NO 129 ,KC_NO
128 ,M(Point) ,LSFT(KC_MINS),KC_MINS 130 ,M(DeRef) ,LSFT(KC_MINS),KC_MINS
129), 131),
130 132
131/******* Media Layer ******************************************************************************************************* 133/******* Media Layer *******************************************************************************************************
132 * 134 *
133 * ,---------------------------------------------------------------. ,---------------------------------------------------------------. 135 * ,---------------------------------------------------------------. ,---------------------------------------------------------------.
134 * | | F11 | F12 | F13 | F14 | F15 | Esc | | | F16 | F17 | F18 | F19 | F20 | | 136 * | | F11 | F12 | F13 | F14 | F15 | Esc | | |||| | F16 | F17 | F18 | F19 | F20 | |
135 * |------+---------+---------+---------+---------+----------------| |------+---------+---------+---------+---------+---------+------| 137 * |------+---------+---------+---------+---------+----------------| |------+---------+---------+---------+---------+---------+------|
136 * | |Shut Down|MouseUpLf|Mouse Up |MouseUpRg|Volume Up|Scroll| |Scroll|PrintScrn| Home | Up | PgUp | Mail | | 138 * | |Shut Down|MouseUpLf|Mouse Up |MouseUpRg|Volume Up|Scroll| |Scroll|PrintScrn| Home | Up | PgUp | Mail | |
137 * |------+---------+---------+---------+---------+---------| Up | | Up |---------+---------+---------+---------+---------+------| 139 * |------+---------+---------+---------+---------+---------| Up | | Up |---------+---------+---------+---------+---------+------|
138 * | | Sleep |MouseLeft|MouseDown|MouseRght|Volume Dn|------| |------| Num Lock| Left | Down | Right | MyComp | | 140 * | | Sleep |MouseLeft|MouseDown|MouseRght|Volume Dn|------| |------| Num Lock| Left | Down | Right | MyComp | |
139 * |------+---------+---------+---------+---------+---------|Scroll| |Scroll|---------+---------+---------+---------+---------+------| 141 * |------+---------+---------+---------+---------+---------|Scroll| |Scroll|---------+---------+---------+---------+---------+------|
140 * | | |MouseDnLf|MouseDown|MouseDnRg| Mute | Down | | Down | | End | Down | PgDn | | | 142 * | | |||| |MouseDnLf|MouseDown|MouseDnRg| Mute | Down | | Down | |||| | End | Down | PgDn | |||| | |
141 * `------+---------+---------+---------+---------+----------------' `----------------+---------+---------+---------+---------+------' 143 * `------+---------+---------+---------+---------+----------------' `----------------+---------+---------+---------+---------+------'
142 * | | | MClick | LClick | R Click| | Insert | Del | | | | 144 * | ||| | |||| | MClick | LClick | R Click| | Insert | Del | |||| | |||| | ||| |
143 * `---------------------------------------------' `---------------------------------------------' 145 * `---------------------------------------------' `---------------------------------------------'
144 * ,-------------. ,-------------. 146 * ,-------------. ,-------------.
145 * | Stop |Refrsh| | Prev | Next | 147 * | Stop |Refrsh| | Prev | Next |
@@ -219,7 +221,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
219 * |------------+------+------+------+------+-------------| |------+------+------+------+------+------+------------| 221 * |------------+------+------+------+------+-------------| |------+------+------+------+------+------+------------|
220 * | \| | P | O | I | U | Y | ] | | [ | T | R | E | W | Q | Tab | 222 * | \| | P | O | I | U | Y | ] | | [ | T | R | E | W | Q | Tab |
221 * |------------+------+------+------+------+------| | | |------+------+------+------+------+------------| 223 * |------------+------+------+------+------+------| | | |------+------+------+------+------+------------|
222 * | | ; | L | K | J | H |------| |------| G | F | D | S | A | '" | 224 * | '" | ; | L | K | J | H |------| |------| G | F | D | S | A | |
223 * |------------+------+------+------+------+------| Tab | |Shift |------+------+------+------+------+------------| 225 * |------------+------+------+------+------+------| Tab | |Shift |------+------+------+------+------+------------|
224 * | Capitals | / | . | , | M | N | | | -Tab | B | V | C | X | Z | Capitals | 226 * | Capitals | / | . | , | M | N | | | -Tab | B | V | C | X | Z | Capitals |
225 * `------------+------+------+------+------+-------------' `-------------+------+------+------+------+------------' 227 * `------------+------+------+------+------+-------------' `-------------+------+------+------+------+------------'
@@ -237,7 +239,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
237// left hand 239// left hand
238 KC_EQL ,KC_0 ,KC_9 ,KC_8 ,KC_7 ,KC_6 ,KC_MINS 240 KC_EQL ,KC_0 ,KC_9 ,KC_8 ,KC_7 ,KC_6 ,KC_MINS
239,KC_BSLS ,KC_P ,KC_O ,KC_I ,KC_U ,KC_Y ,KC_RBRC 241,KC_BSLS ,KC_P ,KC_O ,KC_I ,KC_U ,KC_Y ,KC_RBRC
240,KC_NO ,LT(RBASE, KC_SCLN) ,KC_L ,KC_K ,LT(RBASE, KC_J) ,KC_H 242,KC_QUOT ,LT(RBASE, KC_SCLN) ,KC_L ,KC_K ,LT(RBASE, KC_J) ,KC_H
241,KC_RSFT ,KC_SLSH ,KC_DOT ,KC_COMM,KC_M ,KC_N ,KC_TAB 243,KC_RSFT ,KC_SLSH ,KC_DOT ,KC_COMM,KC_M ,KC_N ,KC_TAB
242,KC_RCTL ,MEH_T(KC_NO),ALL_T(KC_NO),KC_RALT,KC_RGUI 244,KC_RCTL ,MEH_T(KC_NO),ALL_T(KC_NO),KC_RALT,KC_RGUI
243 ,KC_LEFT ,KC_RGHT 245 ,KC_LEFT ,KC_RGHT
@@ -246,7 +248,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
246 // right hand 248 // right hand
247 ,KC_ESC ,KC_5 ,KC_4 ,KC_3 ,KC_2 ,KC_1 ,KC_GRV 249 ,KC_ESC ,KC_5 ,KC_4 ,KC_3 ,KC_2 ,KC_1 ,KC_GRV
248 ,KC_LBRC ,KC_T ,KC_R ,KC_E ,KC_W ,KC_Q ,KC_TAB 250 ,KC_LBRC ,KC_T ,KC_R ,KC_E ,KC_W ,KC_Q ,KC_TAB
249 ,KC_G ,LT(RBASE, KC_F),KC_D ,KC_S ,LT(RBASE, KC_A) ,F(LSymb) 251 ,KC_G ,LT(RBASE, KC_F),KC_D ,KC_S ,LT(RBASE, KC_A) ,KC_NO
250 ,LSFT(KC_TAB),KC_B ,KC_V ,KC_C ,KC_X ,KC_Z ,KC_LSFT 252 ,LSFT(KC_TAB),KC_B ,KC_V ,KC_C ,KC_X ,KC_Z ,KC_LSFT
251 ,KC_LGUI,KC_LALT,KC_HYPR ,KC_MEH,KC_LCTL 253 ,KC_LGUI,KC_LALT,KC_HYPR ,KC_MEH,KC_LCTL
252 ,KC_HOME ,KC_END 254 ,KC_HOME ,KC_END
@@ -390,13 +392,25 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
390 392
391 case NotEq: 393 case NotEq:
392 if (record->event.pressed) { 394 if (record->event.pressed) {
393 return MACRO( I(30), T(EXLM), T(EQL), END ); // 395 return MACRO( I(10), D(LSFT), T(EXLM), U(LSFT), T(EQL), END ); // !=
394 } 396 }
395 break; 397 break;
396 398
397 case Point: 399 case GrtEq:
398 if (record->event.pressed) { 400 if (record->event.pressed) {
399 return MACRO( I(30), T(MINS), T(DOT), END ); // 401 return MACRO( I(10), D(LSFT), T(COMM), U(LSFT), T(EQL), END ); // <=
402 }
403 break;
404
405 case LesEq:
406 if (record->event.pressed) {
407 return MACRO( I(10), D(LSFT), T(DOT), U(LSFT), T(EQL), END ); // >=
408 }
409 break;
410
411 case DeRef:
412 if (record->event.pressed) {
413 return MACRO( I(10), T(MINS), D(LSFT), T(DOT), U(LSFT), END ); // ->
400 } 414 }
401 break; 415 break;
402 416
diff --git a/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.png b/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.png
index 8cd92cee1..1277f7483 100644
--- a/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.png
+++ b/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.png
Binary files differ
diff --git a/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.txt b/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.txt
index f64503ecb..65eca9d6a 100644
--- a/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.txt
+++ b/keyboards/ergodox/keymaps/ordinary/ordinary-symbol.txt
@@ -16,12 +16,12 @@
16[{y:-0.875,x:5.5,c:"#bbddbb"},"~",{x:6.5},"\\"], 16[{y:-0.875,x:5.5,c:"#bbddbb"},"~",{x:6.5},"\\"],
17[{y:-0.875,c:"#c6c600",t:"#9e0000",w:1.5},"Capitals\n\n\n\n\n\nShift",{c:"#bbddbb",t:"#000000"},"%",{x:14.5,c:"#89b087"},"-",{c:"#c6c600",t:"#9e0000",w:1.5},"\n\nCapitals\n\n\n\n\nShift"], 17[{y:-0.875,c:"#c6c600",t:"#9e0000",w:1.5},"Capitals\n\n\n\n\n\nShift",{c:"#bbddbb",t:"#000000"},"%",{x:14.5,c:"#89b087"},"-",{c:"#c6c600",t:"#9e0000",w:1.5},"\n\nCapitals\n\n\n\n\nShift"],
18[{y:-0.375,x:3.5,c:"#bbddbb",t:"#000000"},"<",{x:10.5,c:"#89b087"},"."], 18[{y:-0.375,x:3.5,c:"#bbddbb",t:"#000000"},"<",{x:10.5,c:"#89b087"},"."],
19[{y:-0.875,x:2.5,c:"#bbddbb"},"*",{x:1,a:5},">",{x:8.5,c:"#89b087",a:4},"0",{x:1},"="], 19[{y:-0.875,x:2.5,c:"#bbddbb"},"*",{x:1},">",{x:8.5,c:"#89b087"},"0",{x:1},"="],
20[{y:-0.75,x:0.5,c:"#bbddbb"},";","&",{x:14.5,c:"#89b087"},"+","Enter"], 20[{y:-0.75,x:0.5,c:"#bbddbb"},";","&",{x:14.5,c:"#89b087"},"+","Enter"],
21[{r:30,rx:6.5,ry:4.25,y:-1,x:1,c:"#737373",a:7},"",""], 21[{r:30,rx:6.5,ry:4.25,y:-1,x:1,c:"#bbddbb"},"<=",">="],
22[{c:"#bbddbb",h:2},"+",{h:2},"=",{c:"#737373"},""], 22[{a:7,h:2},"+",{h:2},"=",{c:"#737373"},""],
23[{x:2,c:"#bbddbb"},"!="], 23[{x:2,c:"#bbddbb",a:4},"!="],
24[{r:-30,rx:13,y:-1,x:-3,c:"#737373"},"",""], 24[{r:-30,rx:13,y:-1,x:-3,c:"#737373",a:7},"",""],
25[{x:-3},"",{c:"#bbddbb",h:2},"_",{h:2},"-"], 25[{x:-3},"",{c:"#bbddbb",h:2},"_",{h:2},"-"],
26[{x:-3},"->"] 26[{x:-3,a:4},"->"]
27 27
diff --git a/keyboards/ergodox/keymaps/ordinary/readme.md b/keyboards/ergodox/keymaps/ordinary/readme.md
index 313b726ba..927356892 100644
--- a/keyboards/ergodox/keymaps/ordinary/readme.md
+++ b/keyboards/ergodox/keymaps/ordinary/readme.md
@@ -10,13 +10,13 @@ no rights reserved, use for any purposes, credit me if you are a nice person
10 10
11## The Base Layout ## 11## The Base Layout ##
12 12
13* *White Keys* are all the normal characters and symbols in all the normal locations (except for the brackets). 13* *White Keys* are all the normal characters and symbols in all the normal locations (except for the brackets, and who touch-types brackets?).
14* *Modifier Keys* are light yellow and in the traditional locationn at the bottom of the keyboard: Control, Option, Command, plus Hyper and Meh. 14* *Modifier Keys* are light yellow and in the traditional locationn at the bottom of the keyboard: Control, Option, Command, plus Hyper and Meh. Modifier keys are only found on the base layout.
15* *Shift Keys* are dark yellow, found on the outsides of the keyboard. Capitals Shift (traditional shift) is found in the usual place and above that is found Symbol Shift, Media Shift, and Special Shift (Shift Lock). 15* *Shift Keys* are dark yellow, found on the outsides of the keyboard. Capitals Shift (traditional Shift) is found in the usual place and above that are Symbol Shift, Media Shift, and Special Shift (Shift Lock).
16* Several of the shift keys double for entry of characters which would typically be in those locations. 16* Several of the shift keys double for entry of characters which would typically be in those locations.
17* *Thumb Keys* shown in orange are for text navigation and manipulation. 17* *Thumb Keys* shown in orange are for text navigation and manipulation.
18* The keys under pinky fingers and index fingers will *reverse* the keyboard layout. 18* The keys under pinky fingers and index fingers will *reverse* the keyboard layout.
19* *Escape* is red and it is always found in that location no matter what. 19* *Escape* is red and it is always found in that location (*except* when the layout is reversed).
20 20
21![Ordinary base layout](ordinary-base.png) 21![Ordinary base layout](ordinary-base.png)
22 22
@@ -26,18 +26,18 @@ The Forward Tab and Backward Tab keys are in their locations mostly because I en
26 26
27#### Reversing The Base Layout #### 27#### Reversing The Base Layout ####
28 28
29The Ordinary Layout can be used to perform one-handed chorded text input. If you hold down the key under either index finger or either pinky finger (A, F, J and Semicolon), the whole base layout reverses order. Most keys are _mirrored_ but the delete keys are merely *translated* to preserve directionality. Pro-tip: This feature is particularly handly for bringing the Enter key to the left hand when the right hand is using the mouse. 29The Ordinary Layout can be used to perform one-handed chorded text input. If you hold down the key under either index finger or either pinky finger (A, F, J and Semicolon), the whole base layout reverses order. Most keys are _mirrored_ but the delete keys, home/end, and left/right arrow keys are merely *translated* to preserve directionality. Pro-tip: This feature is particularly handly for bringing the Enter key to the left hand when the right hand is using the mouse.
30 30
31## The Symbols Layer ## 31## The Symbols Layer ##
32 32
33* *Symbols* shown in light green. All kinds of brackets are available on this layer. Ampersand and Pipe justapose each other. Pipe, slash, and backslash are arranged in a column. 33* *Symbols* shown in light green. All kinds of brackets are available on this layer. Ampersand and Pipe justapose each other. Pipe, slash, and backslash are arranged in a column.
34* *F-Keys* are bright green and overlay the row of numerals. This layer has F1-F10, higher *F-Keys* are on the Symbols layer. 34* *F-Keys* are bright green and overlay the row of numerals. This layer has F1-F10, higher *F-Keys* are on the Symbols layer.
35* *Number pad* in dark green under the right hand includes all four arithmetic operations in the same order found on most number pads and features an Enter key. The keycodes emitted here are normal numeric keycodes, not the number-pad specific keycodes emitted by most number pads so that NumLock is not needed. 35* *Number pad* in dark green under the right hand includes all four arithmetic operations in the same order found on most number pads and features an Enter key. The keycodes emitted here are normal numeric keycodes, not the number-pad specific keycodes emitted by most number pads so that NumLock is not needed.
36* The dark gray keys do nothing in case you bump them by accident.
36 37
37![Ordinary symbol layout](ordinary-symbol.png) 38![Ordinary symbol layout](ordinary-symbol.png)
38 39
39The Symbols Layer is based on the Coder Layer from the default Ergodox EZ layout. I slightly rearranged the symbols, added some symbols, expanded the number pad, and straightened out the F-Keys. It's very handy to have the symbols directly underneath the normal typing keys. 40The Symbols Layer is based on the Coder Layer from the default Ergodox EZ layout. I slightly rearranged the symbols, added some symbols, expanded the number pad, and straightened out the F-Keys. It's very handy to have the symbols directly underneath the normal typing keys.
40* The dark gray keys do nothing in case you bump them by accident.
41 41
42## The Media Layer ## 42## The Media Layer ##
43 43
@@ -85,7 +85,7 @@ The Escape and Backspace special sequences are so useful why not have a few more
85 85
86## Errata ## 86## Errata ##
87 87
88Some of the symbols on the Symbols layer are produced by the keyboard by "capitalizing" another symbol (such as *!* from *1*) so when you type that key you will notice the Capitals Shift red LED turn on. 88Some of the symbols on the Symbols layer are produced by the keyboard by "capitalizing" another character (such as *!* from *1*) so when you type that key you will notice the Capitals Shift red LED turn on.
89 89
90**** 90****
91 91