diff options
| author | George Petri <t8_8t@icloud.com> | 2021-10-23 09:34:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-22 23:34:05 -0700 |
| commit | 974e9e0a6b60423aaeb55a32d62f4835aee01a33 (patch) | |
| tree | 5c9c13fd82e67f6e48dba72d52243cc4838b6eae | |
| parent | a167a95bd07adfa15c3837fdee9cee507e49ae06 (diff) | |
| download | qmk_firmware-974e9e0a6b60423aaeb55a32d62f4835aee01a33.tar.gz qmk_firmware-974e9e0a6b60423aaeb55a32d62f4835aee01a33.zip | |
[Keymap] Add Gergoplex keymap (#14768)
6 files changed, 176 insertions, 0 deletions
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/combos.def b/keyboards/gboards/gergoplex/keymaps/georgepetri/combos.def new file mode 100644 index 000000000..a9205c028 --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/combos.def | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | // List any combo dictionaries you want loaded to your device below! | ||
| 2 | |||
| 3 | // QMK wide includes | ||
| 4 | //#include "combos/germ-vim-helpers.def" | ||
| 5 | #include "combos/germ-mouse-keys.def" | ||
| 6 | |||
| 7 | // User includes | ||
| 8 | #include "gergoplex.def" | ||
| 9 | |||
| 10 | // Word completion | ||
| 11 | // #include "combos/eng-combos.def" | ||
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/config.h b/keyboards/gboards/gergoplex/keymaps/georgepetri/config.h new file mode 100644 index 000000000..a60188ef9 --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/config.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | // Copy and worked on with love from the EZ team | ||
| 20 | |||
| 21 | #pragma once | ||
| 22 | |||
| 23 | #define HOLD_ON_OTHER_KEY_PRESS_PER_KEY | ||
| 24 | |||
| 25 | #undef DEBOUNCE | ||
| 26 | #define DEBOUNCE 25 | ||
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/gergoplex.def b/keyboards/gboards/gergoplex/keymaps/georgepetri/gergoplex.def new file mode 100644 index 000000000..239d351b7 --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/gergoplex.def | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | // Gergoplex specfic combos | ||
| 2 | |||
| 3 | COMB(hjEnt, KC_ENT, KC_H, KC_J) | ||
| 4 | COMB(loDel, KC_DEL, KC_L, KC_O) | ||
| 5 | COMB(pscBspace, KC_BSPC, KC_P, KC_SCLN) | ||
| 6 | COMB(fgEsc, KC_ESC, KC_F, KC_G) | ||
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c b/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c new file mode 100644 index 000000000..de3bcf67a --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c | |||
| @@ -0,0 +1,110 @@ | |||
| 1 | /* Copyright 2021 Jane Bernhardt | ||
| 2 | * | ||
| 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 | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | /* Good on you for modifying your layout! if you don't have | ||
| 18 | * time to read the QMK docs, a list of keycodes can be found at | ||
| 19 | * https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md | ||
| 20 | */ | ||
| 21 | |||
| 22 | #include QMK_KEYBOARD_H | ||
| 23 | #include "g/keymap_combo.h" | ||
| 24 | |||
| 25 | enum { | ||
| 26 | _ALPHA, // default | ||
| 27 | _SPECIAL, // special characters | ||
| 28 | _NUMBERS // numbers/function/motion | ||
| 29 | }; | ||
| 30 | |||
| 31 | #define KC_CTL_A MT(MOD_LCTL, KC_A) // Tap for A, hold for Control | ||
| 32 | #define KC_SFT_Z MT(MOD_RSFT, KC_Z) // Tap for Z, hold for Shift | ||
| 33 | #define KC_SFT_SL MT(MOD_RSFT, KC_SLSH) // Tap for slash, hold for Shift | ||
| 34 | |||
| 35 | #define KC_ALT_ENT MT(MOD_LALT, KC_ENT) // Tap for Enter, hold for Alt (Option) | ||
| 36 | #define KC_SPE_SPC LT(_SPECIAL, KC_SPC) // Tap for Space, hold for Special layer | ||
| 37 | #define KC_NUM_SPC LT(_NUMBERS, KC_SPC) // Tap for Space, hold for Numbers layer | ||
| 38 | |||
| 39 | /* Combomap | ||
| 40 | * | ||
| 41 | * ,-------------------------------. ,-------------------------------. | ||
| 42 | * | | | | | | | | | | | | | ||
| 43 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-DEL-+-BSPC--| | ||
| 44 | * | | | | ESC | | ENT | | | | | ||
| 45 | * |-------+-----+-----+-RMB-+-LMB-| |-----+-----+-----+-----+-------| | ||
| 46 | * | | | | | | | | | | | | | ||
| 47 | * `-------------------------------' `-------------------------------' | ||
| 48 | * .-----------------. .-----------------. | ||
| 49 | * | | | | | | | | | ||
| 50 | * '-----------------' '-----------------' | ||
| 51 | */ | ||
| 52 | |||
| 53 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 54 | /* Keymap 0: Alpha layer | ||
| 55 | * | ||
| 56 | * ,-------------------------------. ,-------------------------------. | ||
| 57 | * | Q | W | E | R | T | | Y | U | I | O | P | | ||
| 58 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 59 | * | CTRL A| S | D | F | G | | H | J | K | L | ; | | ||
| 60 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 61 | * | SHFT Z| X | C | V | B | | N | M | , | . |SHFT / | | ||
| 62 | * `-------------------------------' `-------------------------------' | ||
| 63 | * .--------------------------. .----------------------. | ||
| 64 | * | META | ENT ALT | SPC SPE | | SPC NUM | TAB | SHFT | | ||
| 65 | * '--------------------------' '----------------------' | ||
| 66 | */ | ||
| 67 | [_ALPHA] = LAYOUT_split_3x5_3( | ||
| 68 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 69 | KC_CTL_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, | ||
| 70 | KC_SFT_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SFT_SL, | ||
| 71 | KC_LGUI, KC_ALT_ENT, KC_SPE_SPC, KC_NUM_SPC, KC_TAB, KC_RSFT), | ||
| 72 | |||
| 73 | /* Keymap 1: Special characters layer | ||
| 74 | * | ||
| 75 | * ,-------------------------------. ,-------------------------------. | ||
| 76 | * | ! | @ | { | } | | | | ` | - | = | / | \ | | ||
| 77 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 78 | * | # | $ | ( | ) | | | LFT | DWN | UP | RGT | ' | | ||
| 79 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 80 | * | % | ^ | [ | ] | | | & | ~ | + | * | | | ||
| 81 | * `-------------------------------' `-------------------------------' | ||
| 82 | * .-------------------. .-----------------. | ||
| 83 | * | | | | | | | | | ||
| 84 | * '-------------------' '-----------------' | ||
| 85 | */ | ||
| 86 | [_SPECIAL] = LAYOUT_split_3x5_3( | ||
| 87 | KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV, KC_MINS, KC_EQL , KC_SLSH, KC_BSLS, | ||
| 88 | KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, KC_QUOT, | ||
| 89 | KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TRNS, KC_AMPR, KC_TILD, KC_PLUS, KC_ASTR, KC_TRNS, | ||
| 90 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 91 | |||
| 92 | /* Keymap 2: Numbers/Function/Motion layer | ||
| 93 | * | ||
| 94 | * ,-------------------------------. ,-------------------------------. | ||
| 95 | * | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | ||
| 96 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 97 | * | F1 | F2 | F3 | F4 | F5 | | | | | | | | ||
| 98 | * |-------+-----+-----+-----+-----| |-----+-----+-----+-----+-------| | ||
| 99 | * | F6 | F7 | F8 | F9 | F10 | | MLFT| MDWN| MUP | MRGT| | | ||
| 100 | * `-------------------------------' `-------------------------------' | ||
| 101 | * .-----------------. .-----------------. | ||
| 102 | * | F11 | F12 | | | | | | | ||
| 103 | * '-----------------' '-----------------' | ||
| 104 | */ | ||
| 105 | [_NUMBERS] = LAYOUT_split_3x5_3( | ||
| 106 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 107 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 108 | KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_TRNS, | ||
| 109 | KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 110 | }; | ||
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/readme.md b/keyboards/gboards/gergoplex/keymaps/georgepetri/readme.md new file mode 100644 index 000000000..7c8a6f202 --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/readme.md | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # George Petri's Gergoplex layout | ||
| 2 | Vim and programming focused layout. | ||
| 3 | ``` | ||
| 4 | qmk compile -kb gboards/gergoplex -km georgepetri | ||
| 5 | qmk flash -kb gboards/gergoplex -km georgepetri | ||
| 6 | ``` | ||
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/rules.mk b/keyboards/gboards/gergoplex/keymaps/georgepetri/rules.mk new file mode 100644 index 000000000..e882b8008 --- /dev/null +++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/rules.mk | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #---------------------------------------------------------------------------- | ||
| 2 | # make gboards/gergoplex:default:flash | ||
| 3 | # Make sure you have dfu-programmer installed! | ||
| 4 | #---------------------------------------------------------------------------- | ||
| 5 | |||
| 6 | #Debug options | ||
| 7 | VERBOSE = no | ||
| 8 | DEBUG_MATRIX_SCAN_RATE = no | ||
| 9 | DEBUG_MATRIX = no | ||
| 10 | CONSOLE_ENABLE = no | ||
| 11 | |||
| 12 | #Combos! | ||
| 13 | VPATH += keyboards/gboards/ | ||
| 14 | |||
| 15 | ifeq ($(strip $(DEBUG_MATRIX)), yes) | ||
| 16 | OPT_DEFS += -DDEBUG_MATRIX | ||
| 17 | endif | ||
