aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXyverz <xyverz@gmail.com>2020-11-01 10:50:12 -0800
committerGitHub <noreply@github.com>2020-11-01 10:50:12 -0800
commitfed9c97ddbd714c3a6981cfeb4534f286b969079 (patch)
treee26a8feeb749afe1c9ad67a6d46e53698b80660b
parent9f0dbc21a3bcb815877e321c974c55c5320605c6 (diff)
downloadqmk_firmware-fed9c97ddbd714c3a6981cfeb4534f286b969079.tar.gz
qmk_firmware-fed9c97ddbd714c3a6981cfeb4534f286b969079.zip
[Keymap] Added layout for my Keyboardio Atreus (#10726)
* Adding Evan Travers' Keyboardio Atreus branch. Initial commit of my KeyboardIO Atreus layout. This is a direct copy of my default Atreus layout, with blank spaces for the two additional keys. * Added MACLOCK macro to keymap.c * Updates to Keyboardio Atreus keymap and readme. * Adding arrows to bottom row of RAISE and LOWER layers * bringing the rest of the master branch to my working branch. * Changes to my KeyboardIO Atreus keymap & readme * Changes to keymap. * Adding Evan Travers' Keyboardio Atreus branch. Initial commit of my KeyboardIO Atreus layout. This is a direct copy of my default Atreus layout, with blank spaces for the two additional keys. * Added MACLOCK macro to keymap.c * Updates to Keyboardio Atreus keymap and readme. * Adding arrows to bottom row of RAISE and LOWER layers * bringing the rest of the master branch to my working branch. * Changes to my KeyboardIO Atreus keymap & readme * Changes to keymap. * Added GPL2+ compatible license header. Co-authored-by: Ian Sterling <503326@MC02YT9K9LVCF.tld>
-rw-r--r--keyboards/keyboardio/atreus/keymaps/xyverz/keymap.c207
-rw-r--r--keyboards/keyboardio/atreus/keymaps/xyverz/readme.md105
2 files changed, 312 insertions, 0 deletions
diff --git a/keyboards/keyboardio/atreus/keymaps/xyverz/keymap.c b/keyboards/keyboardio/atreus/keymaps/xyverz/keymap.c
new file mode 100644
index 000000000..2bd30bc58
--- /dev/null
+++ b/keyboards/keyboardio/atreus/keymaps/xyverz/keymap.c
@@ -0,0 +1,207 @@
1 /* Copyright 2020 Ian Sterling
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// This is the personal keymap of Ian Sterling (@xyverz). It is based on the keymap by
18// Chris Gerber (@gerbercj), with the addition of persistent layers like the Planck and
19// Preonic keyboards by Jack Humbert.
20
21#include QMK_KEYBOARD_H
22
23// Initial keymap for Xyverz's Keyboardio Atreus
24
25enum layer_names {
26 _DVORAK,
27 _QWERTY,
28 _COLEMAK,
29 _DVORMAC,
30 _LOWER,
31 _RAISE,
32 _ADJUST
33};
34
35enum planck_keycodes {
36 DVORAK = SAFE_RANGE,
37 QWERTY,
38 COLEMAK,
39 DVORMAC,
40 LOWER,
41 RAISE,
42 ADJUST
43};
44
45// Adding macros to make the keymaps below much easier to read.
46#define SFTSCLN SFT_T(KC_SCLN)
47#define SFTSLSH SFT_T(KC_SLSH)
48#define SFTZED SFT_T(KC_Z)
49#define ALTENT ALT_T(KC_ENT)
50#define ESCTRL CTL_T(KC_ESC)
51#define TABALT ALT_T(KC_TAB)
52#define DELGUI GUI_T(KC_DEL)
53#define DELCTL CTL_T(KC_DEL)
54#define MACLOCK LGUI(LCTL(KC_Q))
55#define ADJUST MO(_ADJUST)
56#define LOWER MO(_LOWER)
57#define RAISE MO(_RAISE)
58
59const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
60 /* Dvorak Layer
61 ,----------------------------------. ,----------------------------------.
62 | ' | , | . | P | Y | | F | G | C | R | L |
63 |------+------+------+------+------| |------+------+------+------+------|
64 | A | O | E | U | I | | D | H | T | N | S |
65 |------+------+------+------+------+------.,------+------+------+------+------+------|
66 |SFT/ ;| Q | J | K | X | Home || End | B | M | W | V |SFT/ Z|
67 |------+------+------+------+------+------||------+------+------+------+------+------|
68 | Esc | Tab | GUI | LOWER| BkSp |DELCTL||ALTENT| Spc | RAISE| - | / | \ |
69 `-----------------------------------------'`-----------------------------------------' */
70 [_DVORAK] = LAYOUT(
71 KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L ,
72 KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S ,
73 SFTSCLN, KC_Q, KC_J, KC_K, KC_X, KC_HOME, KC_END, KC_B, KC_M, KC_W, KC_V, SFTZED ,
74 ESCTRL, TABALT, KC_LGUI, LOWER, KC_BSPC, DELCTL, ALTENT, KC_SPC, RAISE, KC_MINS, KC_SLSH, KC_BSLS
75 ),
76
77 /* QWERTY Layer
78 ,----------------------------------. ,----------------------------------.
79 | Q | W | E | R | T | | Y | U | I | O | P |
80 |------+------+------+------+------| |------+------+------+------+------|
81 | A | S | D | F | G | | H | J | K | L | ; |
82 |------+------+------+------+------+------.,------+------+------+------+------+------|
83 |SFT/ Z| X | C | V | B | Home || End | N | M | , | . |SFT/ /|
84 |------+------+------+------+------+------||------+------+------+------+------+------|
85 | Esc | Tab | GUI | LOWER| BkSp | LCTL ||ALTENT| Spc | RAISE| - | ' | \ |
86 `-----------------------------------------'`-----------------------------------------' */
87 [_QWERTY] = LAYOUT(
88 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P ,
89 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
90 SFTZED, KC_X, KC_C, KC_V, KC_B, KC_HOME, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, SFTSLSH,
91 ESCTRL, TABALT, KC_LGUI, LOWER, KC_BSPC, KC_LCTL, ALTENT, KC_SPC, RAISE, KC_MINS, KC_QUOT, KC_BSLS
92 ),
93
94 /* Colemak Layer
95 ,----------------------------------. ,----------------------------------.
96 | Q | W | F | P | G | | J | L | U | Y | L |
97 |------+------+------+------+------| |------+------+------+------+------|
98 | A | R | S | T | D | | H | N | E | I | S |
99 |------+------+------+------+------+------.,------+------+------+------+------+------|
100 |SFT/ Z| X | C | V | B | Home || End | K | M | , | . |SFT/ /|
101 |------+------+------+------+------+------||------+------+------+------+------+------|
102 | Esc | Tab | GUI | LOWER| BkSp | LCTL ||ALTENT| Spc | RAISE| - | ' | \ |
103 `-----------------------------------------'`-----------------------------------------'*/
104 [_COLEMAK] = LAYOUT(
105 KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
106 KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O ,
107 SFTZED, KC_X, KC_C, KC_V, KC_B, KC_HOME, KC_END, KC_K, KC_M, KC_COMM, KC_DOT, SFTSLSH,
108 ESCTRL, TABALT, KC_LGUI, LOWER, KC_BSPC, KC_LCTL, ALTENT, KC_SPC, RAISE, KC_MINS, KC_QUOT, KC_BSLS
109 ),
110
111 /* Dvorak Layer with Command key on left thumb instead of Control
112 ,----------------------------------. ,----------------------------------.
113 | ' | , | . | P | Y | | F | G | C | R | L |
114 |------+------+------+------+------| |------+------+------+------+------|
115 | A | O | E | U | I | | D | H | T | N | S |
116 |------+------+------+------+------+------.,------+------+------+------+------+------|
117 |SFT/ ;| Q | J | K | X | Home || End | B | M | W | V |SFT/ Z|
118 |------+------+------+------+------+------||------+------+------+------+------+------|
119 | Esc | Tab | GUI | LOWER| BkSp | LGUI ||ALTENT| Spc | RAISE| - | / | \ |
120 `-----------------------------------------'`-----------------------------------------' */
121 [_DVORMAC] = LAYOUT(
122 KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L ,
123 KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S ,
124 SFTSCLN, KC_Q, KC_J, KC_K, KC_X, KC_HOME, KC_END, KC_B, KC_M, KC_W, KC_V, SFTZED ,
125 ESCTRL, TABALT, KC_LGUI, LOWER, KC_BSPC, DELGUI, ALTENT, KC_SPC, RAISE, KC_MINS, KC_SLSH, KC_BSLS
126 ),
127
128 /* LOWER Layer
129 ,----------------------------------. ,----------------------------------.
130 | ! | @ | # | $ | % | | ^ | & | * | ( | ) |
131 |------+------+------+------+------| |------+------+------+------+------|
132 | CAPS | | UP | | Home | | PgDn | | + | { | } |
133 |------+------+------+------+------+------.,------+------+------+------+------+------|
134 | | Left | Down | Right| End | || | PgUp | Mute | Vol- | Vol+ | |
135 |------+------+------+------+------+------||------+------+------+------+------+------|
136 | ~ | | | | Del | || | Ins | | | | |
137 `-----------------------------------------'`-----------------------------------------'*/
138 [_LOWER] = LAYOUT(
139 KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN,
140 KC_CAPS, _______, KC_UP, _______, KC_HOME, KC_PGUP, _______, KC_PLUS, KC_LCBR, KC_RCBR,
141 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, _______, _______, KC_PGDN, KC_MUTE, KC_VOLD, KC_VOLU, _______,
142 KC_TILD, KC_LEFT, KC_RGHT, _______, KC_DEL, _______, _______, KC_INS, _______, KC_UP, KC_DOWN, _______
143 ),
144
145 /* RAISE Layer
146 ,----------------------------------. ,----------------------------------.
147 | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
148 |------+------+------+------+------| |------+------+------+------+------|
149 | CAPS | | UP | | Home | | PgDn | | = | [ | ] |
150 |------+------+------+------+------+------.,------+------+------+------+------+------|
151 | | Left | Down | Right| End |MacLck|| | PgUp | Prev | Play | Next | |
152 |------+------+------+------+------+------||------+------+------+------+------+------|
153 | ` | | | | Del | || | Ins | | | | |
154 `-----------------------------------------'`-----------------------------------------'*/
155 [_RAISE] = LAYOUT(
156 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0 ,
157 KC_CAPS, _______, KC_UP, _______, KC_HOME, KC_PGUP, _______, KC_EQL, KC_LBRC, KC_RBRC,
158 _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, MACLOCK, _______, KC_PGDN, KC_MPRV, KC_MPLY, KC_MNXT, _______,
159 KC_GRV, KC_LEFT, KC_RGHT, _______, KC_DEL, _______, _______, KC_INS, _______, KC_UP, KC_DOWN, _______
160 ),
161
162 /* ADJUST Layer
163 ,----------------------------------. ,----------------------------------.
164 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
165 |------+------+------+------+------| |------+------+------+------+------|
166 | F11 | | | | | | | PrSc | ScLk | Paus | F12 |
167 |------+------+------+------+------+------.,------+------+------+------+------+------|
168 | |QWERTY|COLEMK|DVORAK|DVORMC| || | | | | | |
169 |------+------+------+------+------+------||------+------+------+------+------+------|
170 | | | | | | || | | | | | RESET|
171 `-----------------------------------------'`-----------------------------------------'*/
172 [_ADJUST] = LAYOUT(
173 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 ,
174 KC_F11, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_F12 ,
175 _______, QWERTY, COLEMAK, DVORAK, DVORMAC, _______, _______, _______, _______, _______, _______, _______,
176 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET
177 ),
178};
179
180layer_state_t layer_state_set_user(layer_state_t state) {
181 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
182}
183bool process_record_user(uint16_t keycode, keyrecord_t *record) {
184 switch (keycode) {
185 case DVORAK:
186 if (record->event.pressed) {
187 set_single_persistent_default_layer(_DVORAK);
188 }
189 return false;
190 case COLEMAK:
191 if (record->event.pressed) {
192 set_single_persistent_default_layer(_COLEMAK);
193 }
194 return false;
195 case QWERTY:
196 if (record->event.pressed) {
197 set_single_persistent_default_layer(_QWERTY);
198 }
199 return false;
200 case DVORMAC:
201 if (record->event.pressed) {
202 set_single_persistent_default_layer(_DVORMAC);
203 }
204 return false;
205 }
206 return true;
207} \ No newline at end of file
diff --git a/keyboards/keyboardio/atreus/keymaps/xyverz/readme.md b/keyboards/keyboardio/atreus/keymaps/xyverz/readme.md
new file mode 100644
index 000000000..f9749bb3b
--- /dev/null
+++ b/keyboards/keyboardio/atreus/keymaps/xyverz/readme.md
@@ -0,0 +1,105 @@
1# Xyverz's Keyboardio Atreus Keymap
2
3## About this keymap:
4
5This is the first iteration of my Keyboardio Atreus keymap. This is entirely based on my original Atreus keymap
6with a few changes added to reflect the extra two keys, and a code update to current standards.
7
8I'm using MOD_TAP quite a bit in this keymap. On all layers, R4 pinky keys use mod-tap and are SHIFT when held
9and their normal keys when tapped. In addition, ESC and TAB are also set as Ctrl and ALT respectively when held,
10and Enter/ALT on the right thumb key for all alpha layers.
11
12I've enabled persistent keymaps for Qwerty, Dvorak and Colemak layers, similar to the default Planck layouts.
13
14Recently added: Documentation, Formatting, and another Dvorak layer that has Command on the left thumb, instead of
15Control.
16
17## Still to do:
18
19 * Enjoy this revision; figure out new things later.
20
21### Layer 0: Dvorak layer
22
23 ,----------------------------------. ,----------------------------------.
24 | ' | , | . | P | Y | | F | G | C | R | L |
25 |------+------+------+------+------| |------+------+------+------+------|
26 | A | O | E | U | I | | D | H | T | N | S |
27 |------+------+------+------+------+------.,------+------+------+------+------+------|
28 |SFT/ ;| Q | J | K | X | Home || End | B | M | W | V |SFT/ Z|
29 |------+------+------+------+------+------||------+------+------+------+------+------|
30 | Esc | Tab | GUI | LOWER| BkSp | LCTL ||ALTENT| Spc | RAISE| - | / | \ |
31 `-----------------------------------------'`-----------------------------------------'
32
33### Layer 1: QWERTY layer
34
35 ,----------------------------------. ,----------------------------------.
36 | Q | W | E | R | T | | Y | U | I | O | P |
37 |------+------+------+------+------| |------+------+------+------+------|
38 | A | S | D | F | G | | H | J | K | L | ; |
39 |------+------+------+------+------+------.,------+------+------+------+------+------|
40 |SFT/ Z| X | C | V | B | Home || End | N | M | , | . |SFT/ /|
41 |------+------+------+------+------+------||------+------+------+------+------+------|
42 | Esc | Tab | GUI | LOWER| BkSp | LCTL ||ALTENT| Spc | RAISE| - | ' | \ |
43 `-----------------------------------------'`-----------------------------------------'
44
45### Layer 2: Colemak layer
46
47 ,----------------------------------. ,----------------------------------.
48 | Q | W | F | P | G | | J | L | U | Y | L |
49 |------+------+------+------+------| |------+------+------+------+------|
50 | A | R | S | T | D | | H | N | E | I | S |
51 |------+------+------+------+------+------.,------+------+------+------+------+------|
52 |SFT/ Z| X | C | V | B | Home || End | K | M | , | . |SFT/ /|
53 |------+------+------+------+------+------||------+------+------+------+------+------|
54 | Esc | Tab | GUI | LOWER| BkSp | LCTL ||ALTENT| Spc | RAISE| - | ' | \ |
55 `-----------------------------------------'`-----------------------------------------'
56
57### Layer 3: Dvorak for Mac layer
58
59 ,----------------------------------. ,----------------------------------.
60 | ' | , | . | P | Y | | F | G | C | R | L |
61 |------+------+------+------+------| |------+------+------+------+------|
62 | A | O | E | U | I | | D | H | T | N | S |
63 |------+------+------+------+------+------.,------+------+------+------+------+------|
64 |SFT/ ;| Q | J | K | X | Home || End | B | M | W | V |SFT/ Z|
65 |------+------+------+------+------+------||------+------+------+------+------+------|
66 | Esc | Tab | GUI | LOWER| BkSp | LGUI ||ALTENT| Spc | RAISE| - | / | \ |
67 `-----------------------------------------'`-----------------------------------------'
68
69### Layer 4: LOWER layer
70
71 ,----------------------------------. ,----------------------------------.
72 | ! | @ | # | $ | % | | ^ | & | * | ( | ) |
73 |------+------+------+------+------| |------+------+------+------+------|
74 | CAPS | | UP | | Home | | PgDn | | + | { | } |
75 |------+------+------+------+------+------.,------+------+------+------+------+------|
76 | | Left | Down | Right| End | || | PgUp | Mute | Vol- | Vol+ | |
77 |------+------+------+------+------+------||------+------+------+------+------+------|
78 | ~ | | | | Del | || | Ins | | | | |
79 `-----------------------------------------'`-----------------------------------------'
80
81
82### Layer 5: RAISE layer
83
84 ,----------------------------------. ,----------------------------------.
85 | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
86 |------+------+------+------+------| |------+------+------+------+------|
87 | CAPS | | UP | | Home | | PgDn | | = | [ | ] |
88 |------+------+------+------+------+------.,------+------+------+------+------+------|
89 | | Left | Down | Right| End |MacLck|| | PgUp | Prev | Play | Next | |
90 |------+------+------+------+------+------||------+------+------+------+------+------|
91 | ` | | | | Del | || | Ins | | | | |
92 `-----------------------------------------'`-----------------------------------------'
93
94### Layer 6: ADJUST layer
95
96 ,----------------------------------. ,----------------------------------.
97 | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
98 |------+------+------+------+------| |------+------+------+------+------|
99 | F11 | | | | | | | PrSc | ScLk | Paus | F12 |
100 |------+------+------+------+------+------.,------+------+------+------+------+------|
101 | |QWERTY|COLEMK|DVORAK|DVORMC| || | | | | | |
102 |------+------+------+------+------+------||------+------+------+------+------+------|
103 | | | | | | || | | | | | RESET|
104 `-----------------------------------------'`-----------------------------------------'
105