diff options
| -rw-r--r-- | keyboards/xd75/config.h | 2 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/default/config.h | 2 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/xd75/xd75.c | 2 | ||||
| -rw-r--r-- | keyboards/xd75/xd75.h | 2 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/colemak_mod_dh_wide/config.h | 37 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c | 141 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/colemak_mod_dh_wide/readme.md | 5 |
8 files changed, 188 insertions, 5 deletions
diff --git a/keyboards/xd75/config.h b/keyboards/xd75/config.h index 608d0aad1..b509dbdec 100644 --- a/keyboards/xd75/config.h +++ b/keyboards/xd75/config.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Copyright 2017 REPLACE_WITH_YOUR_NAME | 2 | Copyright 2017 Benjamin Kesselring |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 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 | 5 | it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/xd75/keymaps/default/config.h b/keyboards/xd75/keymaps/default/config.h index f52a97bbc..015377b5f 100644 --- a/keyboards/xd75/keymaps/default/config.h +++ b/keyboards/xd75/keymaps/default/config.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | 1 | /* Copyright 2017 Benjamin Kesselring |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/xd75/keymaps/default/keymap.c b/keyboards/xd75/keymaps/default/keymap.c index 82ea1f2be..986732299 100644 --- a/keyboards/xd75/keymaps/default/keymap.c +++ b/keyboards/xd75/keymaps/default/keymap.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | 1 | /* Copyright 2017 Benjamin Kesselring |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/xd75/xd75.c b/keyboards/xd75/xd75.c index 3d635f3c1..9b35b6cfa 100644 --- a/keyboards/xd75/xd75.c +++ b/keyboards/xd75/xd75.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | 1 | /* Copyright 2017 Benjamin Kesselring |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/keyboards/xd75/xd75.h b/keyboards/xd75/xd75.h index 08592b665..b2030d4a6 100644 --- a/keyboards/xd75/xd75.h +++ b/keyboards/xd75/xd75.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | 1 | /* Copyright 2017 Benjamin Kesselring |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
diff --git a/layouts/community/ortho_4x12/colemak_mod_dh_wide/config.h b/layouts/community/ortho_4x12/colemak_mod_dh_wide/config.h new file mode 100644 index 000000000..3c3d9b885 --- /dev/null +++ b/layouts/community/ortho_4x12/colemak_mod_dh_wide/config.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the keymap | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 2 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef CONFIG_USER_H | ||
| 22 | #define CONFIG_USER_H | ||
| 23 | |||
| 24 | #include QMK_KEYBOARD_CONFIG_H | ||
| 25 | |||
| 26 | /* Use I2C or Serial, not both */ | ||
| 27 | |||
| 28 | #define USE_SERIAL | ||
| 29 | // #define USE_I2C | ||
| 30 | |||
| 31 | /* Select hand configuration */ | ||
| 32 | |||
| 33 | #define MASTER_LEFT | ||
| 34 | // #define _MASTER_RIGHT | ||
| 35 | // #define EE_HANDS | ||
| 36 | |||
| 37 | #endif \ No newline at end of file | ||
diff --git a/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c b/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c new file mode 100644 index 000000000..218ff9374 --- /dev/null +++ b/layouts/community/ortho_4x12/colemak_mod_dh_wide/keymap.c | |||
| @@ -0,0 +1,141 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | #include "action_layer.h" | ||
| 3 | #include "eeconfig.h" | ||
| 4 | |||
| 5 | extern keymap_config_t keymap_config; | ||
| 6 | |||
| 7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 10 | // entirely and just use numbers. | ||
| 11 | #define _COLEMAKDH 0 | ||
| 12 | #define _LOWER 1 | ||
| 13 | #define _RAISE 2 | ||
| 14 | #define _ADJUST 16 | ||
| 15 | |||
| 16 | enum custom_keycodes { | ||
| 17 | COLEMAKDH = SAFE_RANGE, | ||
| 18 | LOWER, | ||
| 19 | RAISE, | ||
| 20 | ADJUST, | ||
| 21 | }; | ||
| 22 | |||
| 23 | // Fillers to make layering more clear | ||
| 24 | #define _______ KC_TRNS | ||
| 25 | #define XXXXXXX KC_NO | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | |||
| 29 | /* Colemak | ||
| 30 | * ,-----------------------------------------------------------------------------------. | ||
| 31 | * | Q | W | F | P | B | Tab | Bksp | J | L | U | Y | ; | | ||
| 32 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 33 | * | A | R | S | T | G | Esc | " | M | N | E | I | O | | ||
| 34 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 35 | * | Z | X | C | D | V |Shift |Enter | K | H | , | . | / | | ||
| 36 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 37 | * | Ctrl | Alt | GUI |Adjust|Space |Lower |Raise |Space | Left | Down | Up |Right | | ||
| 38 | * `-----------------------------------------------------------------------------------' | ||
| 39 | */ | ||
| 40 | [_COLEMAKDH] = LAYOUT_ortho_4x12( \ | ||
| 41 | KC_Q, KC_W, KC_F, KC_P, KC_B, KC_TAB, KC_BSPC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, \ | ||
| 42 | KC_A, KC_R, KC_S, KC_T, KC_G, KC_ESC, KC_QUOT, KC_M, KC_N, KC_E, KC_I, KC_O, \ | ||
| 43 | KC_Z, KC_X, KC_C, KC_D, KC_V, KC_LSFT, KC_ENT, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, \ | ||
| 44 | ADJUST, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, LOWER, RAISE, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
| 45 | ), | ||
| 46 | |||
| 47 | /* Lower | ||
| 48 | * ,-----------------------------------------------------------------------------------. | ||
| 49 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 50 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 51 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | | \ | | | | ||
| 52 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 53 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | |Enter | | ||
| 54 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 55 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 56 | * `-----------------------------------------------------------------------------------' | ||
| 57 | */ | ||
| 58 | [_LOWER] = LAYOUT_ortho_4x12( \ | ||
| 59 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
| 60 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | ||
| 61 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
| 63 | ), | ||
| 64 | |||
| 65 | /* Raise | ||
| 66 | * ,-----------------------------------------------------------------------------------. | ||
| 67 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 68 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 69 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 70 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 71 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter | | ||
| 72 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 73 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 74 | * `-----------------------------------------------------------------------------------' | ||
| 75 | */ | ||
| 76 | [_RAISE] = LAYOUT_ortho_4x12( \ | ||
| 77 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
| 78 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
| 79 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ | ||
| 80 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
| 81 | ), | ||
| 82 | |||
| 83 | /* Adjust (Lower + Raise) | ||
| 84 | * ,-----------------------------------------------------------------------------------. | ||
| 85 | * | | Reset| | | | | | | | | | Del | | ||
| 86 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 87 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 88 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 89 | * | | | | | | | | | | | | | | ||
| 90 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 91 | * | | | | | | | | | | | | | ||
| 92 | * `-----------------------------------------------------------------------------------' | ||
| 93 | */ | ||
| 94 | [_ADJUST] = LAYOUT_ortho_4x12( \ | ||
| 95 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ | ||
| 96 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, \ | ||
| 97 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 98 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
| 99 | ) | ||
| 100 | |||
| 101 | |||
| 102 | }; | ||
| 103 | |||
| 104 | void persistent_default_layer_set(uint16_t default_layer) { | ||
| 105 | eeconfig_update_default_layer(default_layer); | ||
| 106 | default_layer_set(default_layer); | ||
| 107 | } | ||
| 108 | |||
| 109 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 110 | switch (keycode) { | ||
| 111 | case LOWER: | ||
| 112 | if (record->event.pressed) { | ||
| 113 | layer_on(_LOWER); | ||
| 114 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 115 | } else { | ||
| 116 | layer_off(_LOWER); | ||
| 117 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 118 | } | ||
| 119 | return false; | ||
| 120 | break; | ||
| 121 | case RAISE: | ||
| 122 | if (record->event.pressed) { | ||
| 123 | layer_on(_RAISE); | ||
| 124 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 125 | } else { | ||
| 126 | layer_off(_RAISE); | ||
| 127 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 128 | } | ||
| 129 | return false; | ||
| 130 | break; | ||
| 131 | case ADJUST: | ||
| 132 | if (record->event.pressed) { | ||
| 133 | layer_on(_ADJUST); | ||
| 134 | } else { | ||
| 135 | layer_off(_ADJUST); | ||
| 136 | } | ||
| 137 | return false; | ||
| 138 | break; | ||
| 139 | } | ||
| 140 | return true; | ||
| 141 | } | ||
diff --git a/layouts/community/ortho_4x12/colemak_mod_dh_wide/readme.md b/layouts/community/ortho_4x12/colemak_mod_dh_wide/readme.md new file mode 100644 index 000000000..63193e586 --- /dev/null +++ b/layouts/community/ortho_4x12/colemak_mod_dh_wide/readme.md | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # ortho_4x12 | ||
| 2 | |||
| 3 | A wide, split layout for use on grid Planck or Let's Split based on the Colemak Mod-DH keyboard layout. | ||
| 4 | |||
| 5 |  | ||
