aboutsummaryrefslogtreecommitdiff
path: root/keyboards/gergo
diff options
context:
space:
mode:
authorGautham Yerroju <gautham.yerroju@gmail.com>2020-04-12 22:37:23 -0700
committerGitHub <noreply@github.com>2020-04-13 07:37:23 +0200
commit7e6b550ebff3accd41fce8ffae706626cd98f755 (patch)
tree6623f990218e8d5ff2a0e5130a8452b511e154fe /keyboards/gergo
parent7f4ce4a8b72c0038a7ffce18db7f98b5219dfd2c (diff)
downloadqmk_firmware-7e6b550ebff3accd41fce8ffae706626cd98f755.tar.gz
qmk_firmware-7e6b550ebff3accd41fce8ffae706626cd98f755.zip
Add a simple custom keymap for Gergo. (#8662)
* Add a simple custom keymap for Gergo. * update readme, keymap cleanup
Diffstat (limited to 'keyboards/gergo')
-rw-r--r--keyboards/gergo/keymaps/gotham/config.h3
-rw-r--r--keyboards/gergo/keymaps/gotham/keymap.c155
-rw-r--r--keyboards/gergo/keymaps/gotham/readme.md8
-rw-r--r--keyboards/gergo/keymaps/gotham/rules.mk37
4 files changed, 203 insertions, 0 deletions
diff --git a/keyboards/gergo/keymaps/gotham/config.h b/keyboards/gergo/keymaps/gotham/config.h
new file mode 100644
index 000000000..6393d46f1
--- /dev/null
+++ b/keyboards/gergo/keymaps/gotham/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3#define IGNORE_MOD_TAP_INTERRUPT
diff --git a/keyboards/gergo/keymaps/gotham/keymap.c b/keyboards/gergo/keymaps/gotham/keymap.c
new file mode 100644
index 000000000..ff6df266f
--- /dev/null
+++ b/keyboards/gergo/keymaps/gotham/keymap.c
@@ -0,0 +1,155 @@
1/* Good on you for modifying your layout! if you don't have
2 * time to read the QMK docs, a list of keycodes can be found at
3 *
4 * https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
5 *
6 * There's also a template for adding new layers at the bottom of this file!
7 */
8
9#include QMK_KEYBOARD_H
10
11enum layers {
12 BASE, // default layer
13 SYMB, // symbols
14 NUMB, // number/navigation
15 MOUS, // mouse navigation
16};
17
18#define KC_ANGL LSFT(KC_COMM)
19#define KC_ANGR LSFT(KC_DOT)
20
21// Blank template at the bottom
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24/* Keymap 0: Basic layer
25 *
26 * ,-------------------------------------------. ,-------------------------------------------.
27 * | ESC | Q | W | E | R | T | | Y | U | I | O | P | \ | |
28 * |--------+------+------+------+------+------|------. .------|------+------+------+------+------+--------|
29 * | LShift | A | S | D | F | G | | | VolUp| H | J | K | L | ; : |RSft/' "|
30 * |--------+------+------+------+------+------|------| |------|------+------+------+------+------+--------|
31 * | LCtrl | Z | X | C | V | B | | | VolDn| N | M | , < | . > | / ? |RCtl/- _|
32 * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
33 * .----------. .----------. .-----------. .------.
34 * | LAlt | |SYMB/Space| | NUMB/Bksp | | MOUS |
35 * '----------' '----------' `-----------' '------'
36 * ,-------. ,-------.
37 * | | |VolMute|
38 * ,------|-------| |-------|------.
39 * | NUMB | | | | SYMB |
40 * | Tab | LGui | | = | Enter|
41 * | | | | | |
42 * `--------------' `--------------'
43 */
44[BASE] = LAYOUT_gergo(
45 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
46 KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, KC_VOLU, KC_H, KC_J, KC_K, KC_L, KC_SCLN, MT(MOD_RSFT, KC_QUOT),
47 KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_MUTE, KC_VOLD, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MT(MOD_RCTL, KC_MINS),
48 KC_LALT, LT(SYMB, KC_SPC), LT(NUMB, KC_TAB), KC_LGUI, KC_EQL, LT(SYMB, KC_ENT), LT(NUMB, KC_BSPC), MO(MOUS)
49 ),
50/* Keymap 1: Symbols layer
51 *
52 * ,-------------------------------------------. ,-------------------------------------------.
53 * | | # | $ | { | } | | | | < | > | | | | |
54 * |--------+------+------+------+------+------|------. .------|------+------+------+------+------+--------|
55 * | | ! | @ | ( | ) | ` | | | | - | & | + | * | ; | ' " |
56 * |--------+------+------+------+------+------|------| |------|------+------+------+------+------+--------|
57 * | | % | ^ | [ | ] | ~ | | | | _ | | | , | . | / ? | - _ |
58 * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
59 * .----------. .----------. .-----. .------.
60 * | LAlt | |SYMB/Space| | Del | | MOUS |
61 * '----------' '----------' `-----' '------'
62 * ,-------. ,-------.
63 * | | | |
64 * ,------|-------| |-------|------.
65 * | NUMB | | | | SYMB |
66 * | Tab | LGui | | = | Enter|
67 * | | | | | |
68 * `--------------' `--------------'
69 */
70[SYMB] = LAYOUT_gergo(
71 _______, KC_HASH, KC_DLR, KC_LCBR, KC_RCBR, XXXXXXX, XXXXXXX, KC_ANGL, KC_ANGR, XXXXXXX, XXXXXXX, KC_PIPE,
72 _______, KC_EXLM, KC_AT, KC_LPRN, KC_RPRN, KC_GRV, XXXXXXX, XXXXXXX, KC_MINS, KC_AMPR, KC_PLUS, KC_ASTR, KC_SCLN, KC_QUOT,
73 _______, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_UNDS, KC_PIPE, KC_COMM, KC_DOT, KC_SLSH, KC_MINS,
74 _______, _______, _______, _______, _______, _______, KC_DEL, _______
75 ),
76/* Keymap 2: Pad/Function layer
77 *
78 * ,-------------------------------------------. ,-------------------------------------------.
79 * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
80 * |--------+------+------+------+------+------|------. .------|------+------+------+------+------+--------|
81 * | | F1 | F2 | F3 | F4 | F5 | F6 | | | PgUp | LEFT | UP | RIGHT| | |
82 * |--------+------+------+------+------+------|------| |------|------+------+------+------+------+--------|
83 * | | F7 | F8 | F9 | F10 | F11 | F12 | | |PgDown| HOME | DOWN | END | | |
84 * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
85 * .----------. .----------. .-----------. .------.
86 * | LAlt | |SYMB/Space| | NUMB/Bksp | | MOUS |
87 * '----------' '----------' `-----------' '------'
88 * ,-------. ,-------.
89 * | | | |
90 * ,------|-------| |-------|------.
91 * | NUMB | | | | SYMB |
92 * | Tab | LGui | | = | Enter|
93 * | | | | | |
94 * `--------------' `--------------'
95 */
96[NUMB] = LAYOUT_gergo(
97 _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, XXXXXXX,
98 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_PGUP, KC_LEFT, KC_UP, KC_RIGHT, XXXXXXX, XXXXXXX,
99 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGDN, KC_HOME, KC_DOWN, KC_END, XXXXXXX, XXXXXXX,
100 _______, _______, _______, _______, _______, _______, _______, _______
101 ),
102/* Keymap 3: Mouse layer
103 *
104 * ,-------------------------------------------. ,-------------------------------------------.
105 * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
106 * |--------+------+------+------+------+------|------. .------|------+------+------+------+------+--------|
107 * | | F1 | F2 | F3 | F4 | F5 | F6 | | | | M_L | M_U | M_R | M_Clk| |
108 * |--------+------+------+------+------+------|------| |------|------+------+------+------+------+--------|
109 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | L_Clk| M_D | R_Clk| | |
110 * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
111 * .----------. .----------. .-----------. .------.
112 * | LAlt | |SYMB/Space| | NUMB/Bksp | | MOUS |
113 * '----------' '----------' `-----------' '------'
114 * ,-------. ,-------.
115 * | | | |
116 * ,------|-------| |-------|------.
117 * | NUMB | | | | SYMB |
118 * | Tab | LGui | | = | Enter|
119 * | | | | | |
120 * `--------------' `--------------'
121 */
122[MOUS] = LAYOUT_gergo(
123 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
124 _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, KC_MS_L, KC_MS_U, KC_MS_R, KC_BTN3, _______,
125 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, XXXXXXX, KC_BTN1, KC_MS_D, KC_BTN2, _______, _______,
126 _______, _______, _______, _______, _______, _______, _______, _______
127 ),
128};
129
130/* Keymap template
131 *
132 * ,-------------------------------------------. ,-------------------------------------------.
133 * | | | | | | | | | | | | | |
134 * |--------+------+------+------+------+------|------. .------|------+------+------+------+------+--------|
135 * | | | | | | | | | | | | | | | |
136 * |--------+------+------+------+------+------|------| |------|------+------+------+------+------+--------|
137 * | | | | | | | | | | | | | | | |
138 * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
139 * .------. .------. .------. .-----.
140 * | | | | | | | |
141 * '------' '------' `------. '-----'
142 * ,-------. ,-------.
143 * | | | |
144 * ,------|-------| |-------|------.
145 * | | | | | |
146 * | | | | | |
147 * | | | | | |
148 * `--------------' `--------------'
149[SYMB] = LAYOUT_gergo(
150 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
151 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
152 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
153 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
154 )
155 */
diff --git a/keyboards/gergo/keymaps/gotham/readme.md b/keyboards/gergo/keymaps/gotham/readme.md
new file mode 100644
index 000000000..2b1c5ab1d
--- /dev/null
+++ b/keyboards/gergo/keymaps/gotham/readme.md
@@ -0,0 +1,8 @@
1This is a modified version of the default keymap for Gergo with some changes.
2
3## Changes:
4 - Rehaul thumb keys. For my hand size, the L and R thumbs rest on space and backspace, and one finger outward, are tab and enter.
5 - = has its own dedicated key to facilitate typing "<space>=<space>", which is a very common trigram in programming.
6 - Change navigation into a T-shaped cluster and add Home and End keys. T-shaped, because it's similar to arrow key cluster and most keys are on the home row, while sharing the number layer.
7 - Separated mouse navigation into a separate layer (in favor of T-shaped arrows, which require 2 rows).
8 - Difficult-to-reach key positions are mostly unused.
diff --git a/keyboards/gergo/keymaps/gotham/rules.mk b/keyboards/gergo/keymaps/gotham/rules.mk
new file mode 100644
index 000000000..351c52558
--- /dev/null
+++ b/keyboards/gergo/keymaps/gotham/rules.mk
@@ -0,0 +1,37 @@
1#----------------------------------------------------------------------------
2# make gergo:germ:dfu
3# Make sure you have dfu-programmer installed!
4#----------------------------------------------------------------------------
5# Firmware options
6BALLER = no # Enable to ball out
7BALLSTEP = 20 # Multiple in px to move, multiplied by layer number
8SCROLLSTEP = 1 # Lines to scroll with ball
9MOUSEKEY_ENABLE = yes # Mouse keys, needed for baller
10
11#Debug options
12VERBOSE = yes
13DEBUG_MATRIX_SCAN_RATE = no
14DEBUG_BALLER = no
15DEBUG_MATRIX = yes
16
17# A bunch of stuff that you shouldn't touch unless you
18# know what you're doing.
19#
20# No touchy, capiche?
21SRC += matrix.c i2c_master.c
22ifneq ($(strip $(BALLSTEP)),)
23 OPT_DEFS += -DTRKSTEP=$(strip $(BALLSTEP))
24endif
25ifneq ($(strip $(SCROLLSTEP)),)
26 OPT_DEFS += -DSCROLLSTEP=$(strip $(SCROLLSTEP))
27endif
28ifeq ($(strip $(BALLER)), yes)
29 POINTING_DEVICE_ENABLE = yes
30 OPT_DEFS += -DBALLER
31endif
32ifeq ($(strip $(DEBUG_BALLER)), yes)
33 OPT_DEFS += -DDEBUG_BALLER
34endif
35ifeq ($(strip $(DEBUG_MATRIX)), yes)
36 OPT_DEFS += -DDEBUG_MATRIX
37endif