diff options
Diffstat (limited to 'keyboards/thevankeyboards/minivan/keymaps/josjoha/base_qwerty.c')
| -rw-r--r-- | keyboards/thevankeyboards/minivan/keymaps/josjoha/base_qwerty.c | 209 |
1 files changed, 209 insertions, 0 deletions
diff --git a/keyboards/thevankeyboards/minivan/keymaps/josjoha/base_qwerty.c b/keyboards/thevankeyboards/minivan/keymaps/josjoha/base_qwerty.c new file mode 100644 index 000000000..472233073 --- /dev/null +++ b/keyboards/thevankeyboards/minivan/keymaps/josjoha/base_qwerty.c | |||
| @@ -0,0 +1,209 @@ | |||
| 1 | /* | ||
| 2 | * License (GPL): | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | |||
| 17 | * Author: © 2020 by Jos Boersema | ||
| 18 | * | ||
| 19 | */ | ||
| 20 | |||
| 21 | // --------------------------------------v--------------------------------------- | ||
| 22 | // Configuration: | ||
| 23 | // --------------------------------------v--------------------------------------- | ||
| 24 | |||
| 25 | // --------------------------------------^--------------------------------------- | ||
| 26 | // Below here no more comfortable configuration options..... | ||
| 27 | // --------------------------------------^--------------------------------------- | ||
| 28 | |||
| 29 | |||
| 30 | /* Redefine a layer in this file | ||
| 31 | * | ||
| 32 | * _Activate_ one or more of the below BASESFILE_LAYER_..., to redefine the layer | ||
| 33 | * in this file. The version in ./keymap.c will be ignored. Keep in mind to use | ||
| 34 | * transparent keys (_______) for “hold” layer switch keys on the BASE map, for | ||
| 35 | * your new layer. | ||
| 36 | */ | ||
| 37 | // #define BASESFILE_LAYER_ACC | ||
| 38 | // #define BASESFILE_LAYER_DRA | ||
| 39 | // #define BASESFILE_LAYER_BON | ||
| 40 | // #define BASESFILE_LAYER_PAD | ||
| 41 | // #define BASESFILE_LAYER_MOV | ||
| 42 | // #define BASESFILE_LAYER_RAR | ||
| 43 | // #define BASESFILE_LAYER_FUN | ||
| 44 | |||
| 45 | /* ⬇ */ | ||
| 46 | |||
| 47 | /* Layer _..._BASE: Qwerty, normal BASE layer and 'default' layer | ||
| 48 | * | ||
| 49 | * - Dual use keys create a delay in the key (tap/hold keys), therefore | ||
| 50 | * space is not dual use (most ued key), neither is hyphen. | ||
| 51 | */ | ||
| 52 | |||
| 53 | // Process user configuration wrt ‛Default’ or ‛Alternative’ spot for this layout. | ||
| 54 | # if defined(BASE_QWERTY__DEF_BASE) | ||
| 55 | [ _DEF_BASE ] = LAYOUT_redefined ( | ||
| 56 | # elif defined(BASE_QWERTY__ALT_BASE) | ||
| 57 | [ _ALT_BASE ] = LAYOUT_redefined ( | ||
| 58 | # endif | ||
| 59 | |||
| 60 | /* | ||
| 61 | Layer _..._BASE (Letters). This is Qwerty | ||
| 62 | | Right hand | ||
| 63 | <pink2 <pinky<ring <middl<index<indx2| indx2>index>middl>ring> pinky>pinky2> // Keys by finger | ||
| 64 | -o- <|> ... //-o- BASE access | ||
| 65 | Esc qQ wW eE rR tT | yY uU iI oO pP Bksp | ||
| 66 | Tab+LCtl aA sS dD fF gG | hH jJ kK lL ;: '" | ||
| 67 | LSht+_PAD zZ xX cC vV bB | nN mM ,< .> /? RSht+_FUN | ||
| 68 | +_MOV⁵ | +_RAR⁶ | ||
| 69 | --------------------------------------------------------------------------------------- | ||
| 70 | Left+LAlt Del;_ACC _..._NSY(_DRA) Enter+_MOV| Space _..._NSY(_DRA) LGUI Right;_RAR | ||
| 71 | hold hold₍₁,₂٭₎ hold | hold₍₁,₂٭₎ hold // switch type | ||
| 72 | hold₍₂₎ ^-┃-----------------------+--------^ ┃ // ₁₎ both = _DRA | ||
| 73 | ┗━━━_BON━━━╋┅───────────┄┄┄«or»┄┄┄─+─────────┅┛ // ₂₎ both = _BON | ||
| 74 | <1 ± <2 <3 <4 | 4> 3> 2> ± 1> // Keys by number | ||
| 75 | ^³ ^⁴ // Optional more keys | ||
| 76 | (RGUI) (_MOV) | ||
| 77 | |||
| 78 | ₁) Dual hold for _DRA, single hold for _..._NSY. Marked by: ^--…--^ | ||
| 79 | ₂) Hold key “<2” with either٭ key “<3” or “3>” for _BON, single hold “<2” for _ACC. Marked: ┗━━…━━┛ | ||
| 80 | ₃) 'South paw' hardware configuration. Configurable, default shown. | ||
| 81 | ₄) 'Arrow' hardware configuration Configurable, default shown. | ||
| 82 | ₃ ₄) There are two more optional hardware keys, to make it easier to compile for | ||
| 83 | a 12x12x12x11 or 12x12x12x12 layouts. | ||
| 84 | ₅) Left Shift when pressed with another key. Medium long: to toggle _PAD. Long: toggle _MOV. | ||
| 85 | ₆) Right shift when pressed with another key. medium long: to toggle _FUN. Long: toggle _RAR. | ||
| 86 | */ | ||
| 87 | // | ||
| 88 | // <pink2 , <pink, <ring, <midd, <indx, <ind|, indx>, inde>, midd> , ring> , pink> , pink2> , | ||
| 89 | // -*!- , , , , , <|,> , , , , , , | ||
| 90 | KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC , | ||
| 91 | LCTL_T ( KC_TAB ) , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , KC_QUOT , | ||
| 92 | CHOLTAP_LSHFT , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , CHOLTAP_RSHFT , | ||
| 93 | // ----------------------------------------------------------------------------------------------------------------- | ||
| 94 | LALT_T ( KC_LEFT ) | ||
| 95 | |||
| 96 | # ifdef TRANSMINIVAN_LEFTSIDE | ||
| 97 | , MO ( _PAD ) | ||
| 98 | # endif | ||
| 99 | |||
| 100 | # ifdef MORE_KEY__COMMAND | ||
| 101 | , MORE_key1_BASE | ||
| 102 | # endif | ||
| 103 | |||
| 104 | # ifdef SWITCH_HOLD_ACC_NSY | ||
| 105 | , DUO_HOLD , CHOLTAP_ACCE | ||
| 106 | # else | ||
| 107 | , CHOLTAP_ACCE , DUO_HOLD | ||
| 108 | # endif | ||
| 109 | |||
| 110 | , LT__MOV__KC_ENT | ||
| 111 | |||
| 112 | # ifdef TRANSMINIVAN_MIDLEFT | ||
| 113 | , TRANS_MIDLEFT | ||
| 114 | # endif | ||
| 115 | |||
| 116 | , KC_SPC , DUO_HOLD , KC__YGUI | ||
| 117 | |||
| 118 | # ifdef TRANSMINIVAN_RIGHTSIDE | ||
| 119 | , MO ( _FUN ) | ||
| 120 | # endif | ||
| 121 | |||
| 122 | # ifdef MORE_KEY__ARROW | ||
| 123 | , MORE_key2 | ||
| 124 | # endif | ||
| 125 | |||
| 126 | , CHOLTAP_LAYR | ||
| 127 | // , , , <|,> , , , | ||
| 128 | // <1 ± ± , <2 , <3 , <4 |, 4> , 3> , 2> , ± ± 1> | ||
| 129 | |||
| 130 | ), | ||
| 131 | |||
| 132 | /* ⬆⬇ */ | ||
| 133 | |||
| 134 | /* Layer _..._NSY: Numbers and symbols, to work with the Qwerty base layer above. | ||
| 135 | * Off hand Number input (-.Bksp ent (shft)tab). | ||
| 136 | */ | ||
| 137 | // KC_TILD does not work there, because of a limitation with shifted keys (nov 2019). | ||
| 138 | |||
| 139 | // Process user configuration wrt ‛Default’ or ‛Alternative’ spot for this layout. | ||
| 140 | # if defined(BASE_QWERTY__DEF_BASE) | ||
| 141 | [ _DEF_NSY ] = LAYOUT_redefined ( | ||
| 142 | # elif defined(BASE_QWERTY__ALT_BASE) | ||
| 143 | [ _ALT_NSY ] = LAYOUT_redefined ( | ||
| 144 | # endif | ||
| 145 | |||
| 146 | /* | ||
| 147 | Layer _..._NSY (Numbers and SYmbols). This fits the above Qwerty layer _..._BASE | ||
| 148 | |||
| 149 | <pink2 <pinky<ring <middl<index<indx2| indx2>index>middl>ring>pin>pink2> | ||
| 150 | -*- <|> //(toggle) Access on _FUN | ||
| 151 | BASE ! @ # $ % | ^ & * ( ) Del | ||
| 152 | Tab+LCtl 1! 2@ 3# 4$ 5% | 6^ 7& 8* 9( 0) `~+RCtl | ||
| 153 | -+LSht [{ ]} -_ \| =+ | + | _ { } `~+RSht // limitation prevents ~ | ||
| 154 | ^^ ^ // Only differences with normal version _..._NSY | ||
| 155 | --------------------------------------------------------------------------- | ||
| 156 | Left+LAlt ___ ___ Ent | . ___ LGUI Right+RAlt | ||
| 157 | -*- <|> -*- //(hold) Access on _..._BASE | ||
| 158 | <1 ± <2 <3 <4 | 4> 3> 2> ± 1> | ||
| 159 | ^ ^ | ||
| 160 | (RGUI) (_MOV) | ||
| 161 | */ | ||
| 162 | // | ||
| 163 | // | ||
| 164 | // <pink2 , <pinky , <ring , <middl , <index , <indx2 |, indx2> , index> , middl> , ring> , pinky> , pink2> , | ||
| 165 | // , -*- , , , , <|,> , , , , , , | ||
| 166 | CTO_BASE , KC_EXLM , KC_AT , KC_HASH , KC_DLR , KC_PERC , KC_CIRC , KC_AMPR , KC_ASTR , KC_LPRN , KC_RPRN , KC_DEL , | ||
| 167 | LCTL_T ( KC_TAB ) , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 | ||
| 168 | // Harmonizes with ‛Qwerty Base Arrow’, so that if both are compiled, the user isn't | ||
| 169 | // messing up this key on this Qwerty layout, which has to be different in the other Qwerty. | ||
| 170 | # ifdef QWERTY_BASEARROW_HARMONIZE | ||
| 171 | , KC_SLSH , // Same as in ‛Qwerty Base Arrow’ | ||
| 172 | # else | ||
| 173 | , RCTL_T ( KC_GRV ) , // Default | ||
| 174 | # endif | ||
| 175 | LSFT_T ( KC_MINS ) , KC_LBRC , KC_RBRC , KC_MINS , KC_BSLS , KC_EQL , KC_PLUS , KC_PIPE , KC_UNDS , KC_LCBR , KC_RCBR , RSFT_T ( KC_TILD ) , | ||
| 176 | // --------------------------------------------------------------------------------------------------------------------------------------------- | ||
| 177 | LALT_T ( KC_LEFT ) | ||
| 178 | |||
| 179 | # ifdef TRANSMINIVAN_LEFTSIDE | ||
| 180 | , XXXXXXX | ||
| 181 | # endif | ||
| 182 | |||
| 183 | # ifdef MORE_KEY__COMMAND | ||
| 184 | , MORE_key1 | ||
| 185 | # endif | ||
| 186 | |||
| 187 | , _______ , _______ , KC_ENT | ||
| 188 | |||
| 189 | # ifdef TRANSMINIVAN_MIDLEFT | ||
| 190 | , TRANS_MIDLEFT | ||
| 191 | # endif | ||
| 192 | |||
| 193 | , KC_DOT , DUO_HOLD , KC__YGUI | ||
| 194 | |||
| 195 | # ifdef TRANSMINIVAN_RIGHTSIDE | ||
| 196 | , XXXXXXX | ||
| 197 | # endif | ||
| 198 | |||
| 199 | # ifdef MORE_KEY__ARROW | ||
| 200 | , MORE_key2 | ||
| 201 | # endif | ||
| 202 | |||
| 203 | , RALT_T ( KC_RGHT ) | ||
| 204 | // , , -*- , <|,> , -*- , , | ||
| 205 | // <1 ± ± , <2 , <3 , <4 |, 4> , 3> , 2> , ± ± 1> | ||
| 206 | |||
| 207 | ), | ||
| 208 | |||
| 209 | /* ⬆⬇ */ | ||
