aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Petri <t8_8t@icloud.com>2021-10-23 09:34:05 +0300
committerGitHub <noreply@github.com>2021-10-22 23:34:05 -0700
commit974e9e0a6b60423aaeb55a32d62f4835aee01a33 (patch)
tree5c9c13fd82e67f6e48dba72d52243cc4838b6eae
parenta167a95bd07adfa15c3837fdee9cee507e49ae06 (diff)
downloadqmk_firmware-974e9e0a6b60423aaeb55a32d62f4835aee01a33.tar.gz
qmk_firmware-974e9e0a6b60423aaeb55a32d62f4835aee01a33.zip
[Keymap] Add Gergoplex keymap (#14768)
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/combos.def11
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/config.h26
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/gergoplex.def6
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c110
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/readme.md6
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/rules.mk17
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/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along 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
3COMB(hjEnt, KC_ENT, KC_H, KC_J)
4COMB(loDel, KC_DEL, KC_L, KC_O)
5COMB(pscBspace, KC_BSPC, KC_P, KC_SCLN)
6COMB(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
25enum {
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
53const 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
2Vim and programming focused layout.
3```
4qmk compile -kb gboards/gergoplex -km georgepetri
5qmk 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
7VERBOSE = no
8DEBUG_MATRIX_SCAN_RATE = no
9DEBUG_MATRIX = no
10CONSOLE_ENABLE = no
11
12#Combos!
13VPATH += keyboards/gboards/
14
15ifeq ($(strip $(DEBUG_MATRIX)), yes)
16 OPT_DEFS += -DDEBUG_MATRIX
17endif