aboutsummaryrefslogtreecommitdiff
path: root/keyboards/minidox
diff options
context:
space:
mode:
authorXyverz <xyverz@gmail.com>2019-10-28 16:09:01 -0700
committernoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-10-28 16:09:01 -0700
commitf19c8b2d5daedcbf833fe8320f290cad9d9f0b83 (patch)
tree3b0f08d1893b1525f234fd2d0f554f1dbf412316 /keyboards/minidox
parent8ab7f1f39e715c824cc0e1391aa9a469b2a18438 (diff)
downloadqmk_firmware-f19c8b2d5daedcbf833fe8320f290cad9d9f0b83.tar.gz
qmk_firmware-f19c8b2d5daedcbf833fe8320f290cad9d9f0b83.zip
[Keymap] Updating keymaps (#7170)
* Added WOW layer * Initial commit for this branch. Still a work in progress. * Added Rorschach keyboard layout. * Simplified keymap Removed the media layer to help simplify things. Also corrected some keymap mistakes in the Qwerty and Colemak layers. * Added ErgoTravel keymap. * reverted to previous layout. * Added Sol keyboard layout. * Minor changes to keymap. * more changes * Added sol graphic by Kagerufu and Cardiactuna * Added colemak layer because I can. * more changes to sol layout * Streamlined Sol layout * minor tweaks to sol layout * further revisions to sol keymap. * Removing deprecated #include statements from my keymaps * Standardizing keymap `include` lines. * Minor change to keymap. Swapped ESC with GRV on all alpha layers. * Tweaks to Atreus62 Keymap Added a layer for FPS RPG Loot Shooters. * Fixed readme.md for Atreus keymap. Replaced "Keymap" with "Layer" in illustrations for continuity's sake * More readme.md clean-up More clarification in the Atreus readme file. * Next verse, same as the first. * Changes to Sol layout Bringing my Sol layout more in line with my other Orthos. * Fixed keymap GUI. Replaced left-hand "RGUI" with "LGUI" on all layers as it should be. * Added ALPS64 keymap * Formatting corrections * fixes to config.h and keymap.c * Fixed errors This commit fixes a pathing issue in keyboards/orthodox/keymaps/xyverz/config.h and removes an stupid comma at the end of each LAYOUT stanza in keyboards/rgbkb/sol/keymaps/xyverz/keymap.c left there by me. * Fixed orthodox keymap config.h file I hope this one fixes the problem. *sigh* * Making suggested changes for PR#6192 Thanks to noroadsleft, fauxpark, and drashna. Still have more work to do, but at least these suggestions have been applied. * Fixing build errors Travis has shown me the error of my ways... * More fixes and corrections Those pesky semicolons... * More Fixes. * Removing unneeded code snippet. * fixed omitted semicolons * Code updates to my keymaps Updating the code for my Iris, Atreus62, and Atreus keymaps. * Fixed Atreus62 Keymap I forgot to add in the aliases for LOWER, RAISE, and ADJUST. * Added userspace Also made changes to Atreus62 Keymap to turn the red LEDs off on the ProMicro * Fixing code that disables LEDs on ProMicros Also tidied up my ErgoTravel keymap. * Moving userspace to new branch Moving my userspace to a new branch for the sake of keeping things clean on the master branch. * Added F13-F15 to Atreus62 Layout. * Update readme.md. * Updated Phantom keymap to current keymap standards * Phantom keymap updates Further updates - tidying and removing cruft. Thank you zvecr on Discord for the help! * Standards Updates Bringing my Kinesis keymap up to current code standards * Adding a readme * Bring GH60 code to standard * Utilizing layouts for 60_ansi and tkl_ansi Moving my GH60 and Phantom keymaps into layouts/community/ * Alps64 layout removal Removing my Alps64 keymap now that I've setup my 60_ansi layout. * Moved Clueboard layout to community/66_ansi. * Additions to 66_ansi config.h * Bringing keymaps up to standard. * More updates to keymaps. * Syntax updates * Revert "Syntax updates" This reverts commit a892b2d9fcc0d4ba8fc22d676d5414120cc2c183. * Moved WIP keymaps Moved my WIP keymaps to my wip_keymaps branch to keep my master clean * Updates requested by noroadsleft * more changes per noroadsleft More fixes as requested by noroadsleft. Further tidy-up and standardization of my keymap code.
Diffstat (limited to 'keyboards/minidox')
-rw-r--r--keyboards/minidox/keymaps/xyverz/keymap.c167
1 files changed, 65 insertions, 102 deletions
diff --git a/keyboards/minidox/keymaps/xyverz/keymap.c b/keyboards/minidox/keymaps/xyverz/keymap.c
index 4863f4f92..994ee4e1b 100644
--- a/keyboards/minidox/keymaps/xyverz/keymap.c
+++ b/keyboards/minidox/keymaps/xyverz/keymap.c
@@ -1,44 +1,28 @@
1#include QMK_KEYBOARD_H 1#include QMK_KEYBOARD_H
2 2
3extern keymap_config_t keymap_config; 3enum layer_names { _QWERTY, _COLEMAK, _DVORAK, _LOWER, _RAISE, _ADJUST };
4 4
5// Each layer gets a name for readability, which is then used in the keymap matrix below. 5enum custom_keycodes { QWERTY = SAFE_RANGE, COLEMAK, DVORAK, LOWER, RAISE, ADJUST };
6// The underscores don't mean anything - you can have a layer called STUFF or any other name.
7// Layer names don't all need to be of the same length, obviously, and you can also skip them
8// entirely and just use numbers.
9#define _DVORAK 0
10#define _QWERTY 1
11#define _COLEMAK 2
12#define _LOWER 3
13#define _RAISE 4
14#define _ADJUST 16
15
16enum planck_keycodes {
17 DVORAK = SAFE_RANGE,
18 QWERTY,
19 COLEMAK,
20 LOWER,
21 RAISE,
22 BACKLIT
23};
24 6
25// Adding macros to make the keymaps below much easier to read. 7// Adding macros to make the keymaps below much easier to read.
26#define SFTSCLN SFT_T(KC_SCLN) 8/*
27#define SFTSLSH SFT_T(KC_SLSH) 9 Visit https://github.com/qmk/qmk_firmware/blob/master/docs/feature_advanced_keycodes.md#mod-tap
28#define SFTZED SFT_T(KC_Z) 10 to read why these macros below are side-aware (LALT, RCTL, etc).
29//#define ALTENT ALT_T(KC_ENT) 11*/
30//#define ESCTRL CTL_T(KC_ESC) 12#define CTLSCLN RCTL_T(KC_SCLN)
31//#define TABGUI GUI_T(KC_TAB) 13#define CTLSLSH LCTL_T(KC_SLSH)
32#define CTRLQ CTL_T(KC_Q) 14#define RCTLZED RCTL_T(KC_Z)
33#define CTRLV CTL_T(KC_V) 15#define LCTLZED LCTL_T(KC_Z)
34#define ALTJ ALT_T(KC_J) 16#define ALTDOT RALT_T(KC_DOT)
35#define ALTW ALT_T(KC_W) 17#define ALTX LALT_T(KC_X)
36#define CTRLX CTL_T(KC_X) 18#define ALTQ LALT_T(KC_Q)
37#define CTRLDOT CTL_T(KC_DOT) 19#define ALTV RALT_T(KC_V)
38#define ALTC ALT_T(KC_C) 20#define GUICOMM RGUI_T(KC_COMM)
39#define ALTCOMM ALT_T(KC_COMM) 21#define GUIJ LGUI_T(KC_J)
40//#define GUIBSPC GUI_T(KC_BSPC) 22#define GUIC LGUI_T(KC_C)
23#define GUIW RGUI_T(KC_W)
41 24
25// clang-format off
42const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
43 27
44/* Dvorak 28/* Dvorak
@@ -48,19 +32,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
48 * |------+------+------+------+------| |------+------+------+------+------| 32 * |------+------+------+------+------| |------+------+------+------+------|
49 * | A | O | E | U | I | | D | H | T | N | S | 33 * | A | O | E | U | I | | D | H | T | N | S |
50 * |------+------+------+------+------| |------+------+------+------+------| 34 * |------+------+------+------+------| |------+------+------+------+------|
51 * |SFT/ ;|CTL/ Q|ALT/ J| K | X | | B | M |ALT/ W|CTL/ V|SFT/ Z| 35 * |CTL/ ;|ALT/ Q|GUI/ J| K | X | | B | M |GUI/ W|ALT/ V|CTL/ Z|
52 * `----------------------------------' `----------------------------------' 36 * `----------------------------------' `----------------------------------'
53 * ,--------------------. ,------,-------------. 37 * ,--------------------. ,------,-------------.
54 * | LOWER| Gui | | | | Ent |RAISE | 38 * | LOWER| BSPC | | | | Spc |RAISE |
55 * `-------------| BSpc | | Spc |------+------. 39 * `-------------| SHFT | | Ent |------+------.
56 * | | | | 40 * | | | |
57 * `------' `------' 41 * `------' `------'
58 */ 42 */
59[_DVORAK] = LAYOUT ( \ 43[_DVORAK] = LAYOUT ( \
60 KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, \ 44 KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, \
61 KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, \ 45 KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, \
62 SFTSCLN, CTRLQ, ALTJ, KC_K, KC_X, KC_B, KC_M, ALTW, CTRLV, SFTZED, \ 46 CTLSCLN, ALTQ, GUIJ, KC_K, KC_X, KC_B, KC_M, GUIW, ALTV, RCTLZED, \
63 LOWER, KC_LGUI, KC_BSPC, KC_SPC, KC_ENT, RAISE \ 47 LOWER, KC_BSPC, KC_LSFT, KC_ENT, KC_SPC, RAISE \
64), 48),
65 49
66/* Qwerty 50/* Qwerty
@@ -70,19 +54,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
70 * |------+------+------+------+------| |------+------+------+------+------| 54 * |------+------+------+------+------| |------+------+------+------+------|
71 * | A | S | D | F | G | | H | J | K | L | ; | 55 * | A | S | D | F | G | | H | J | K | L | ; |
72 * |------+------+------+------+------| |------+------+------+------+------| 56 * |------+------+------+------+------| |------+------+------+------+------|
73 * |SFT/ Z|CTL/ X|ALT/ C| V | B | | N | M |ALT/ ,|CTL/ .|SFT/ /| 57 * |CTL/ Z|ALT/ X|GUI/ C| V | B | | N | M |GUI/ ,|ALT/ .|CTL/ /|
74 * `----------------------------------' `----------------------------------' 58 * `----------------------------------' `----------------------------------'
75 * ,--------------------. ,------,-------------. 59 * ,--------------------. ,------,-------------.
76 * | LOWER| Gui | | | | Ent |RAISE | 60 * | LOWER| BSPC | | | | Spc |RAISE |
77 * `-------------| BSpc | | Spc |------+------. 61 * `-------------| SHFT | | Ent |------+------.
78 * | | | | 62 * | | | |
79 * `------' `------' 63 * `------' `------'
80 */ 64 */
81[_QWERTY] = LAYOUT ( \ 65[_QWERTY] = LAYOUT ( \
82 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \ 66 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \
83 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, \ 67 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, \
84 SFTZED, CTRLX, ALTC, KC_V, KC_B, KC_N, KC_M, ALTCOMM, CTRLDOT, SFTSLSH, \ 68 LCTLZED, ALTX, GUIC, KC_V, KC_B, KC_N, KC_M, GUICOMM, ALTDOT, CTLSLSH, \
85 LOWER, KC_LGUI, KC_BSPC, KC_SPC, KC_ENT, RAISE \ 69 LOWER, KC_BSPC, KC_LSFT, KC_ENT, KC_SPC, RAISE \
86), 70),
87 71
88/* Colemak 72/* Colemak
@@ -92,19 +76,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
92 * |------+------+------+------+------| |------+------+------+------+------| 76 * |------+------+------+------+------| |------+------+------+------+------|
93 * | A | R | S | T | D | | H | N | E | I | S | 77 * | A | R | S | T | D | | H | N | E | I | S |
94 * |------+------+------+------+------| |------+------+------+------+------| 78 * |------+------+------+------+------| |------+------+------+------+------|
95 * |SFT/ Z|CTL/ X|ALT/ C| V | B | | K | M |ALT/ ,|CTL/ .|SFT/ /| 79 * |CTL/ Z|ALT/ X|GUI/ C| V | B | | K | M |GUI/ ,|ALT/ .|CTL/ /|
96 * `----------------------------------' `----------------------------------' 80 * `----------------------------------' `----------------------------------'
97 * ,--------------------. ,------,-------------. 81 * ,--------------------. ,------,-------------.
98 * | LOWER| Gui | | | | Ent |RAISE | 82 * | LOWER| BSPC | | | | Spc |RAISE |
99 * `-------------| BSpc | | Spc |------+------. 83 * `-------------| SHFT | | Ent |------+------.
100 * | | | | 84 * | | | |
101 * `------' `------' 85 * `------' `------'
102 */ 86 */
103[_COLEMAK] = LAYOUT ( \ 87[_COLEMAK] = LAYOUT ( \
104 KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, \ 88 KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, \
105 KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, \ 89 KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, \
106 SFTZED, CTRLX, ALTC, KC_V, KC_B, KC_K, KC_M, ALTCOMM, CTRLDOT, SFTSLSH, \ 90 LCTLZED, ALTX, GUIC, KC_V, KC_B, KC_K, KC_M, GUICOMM, ALTDOT, CTLSLSH, \
107 LOWER, KC_LGUI, KC_BSPC, KC_SPC, KC_ENT, RAISE \ 91 LOWER, KC_BSPC, KC_LSFT, KC_ENT, KC_SPC, RAISE \
108), 92),
109 93
110/* Lower 94/* Lower
@@ -168,65 +152,44 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
168 */ 152 */
169[_ADJUST] = LAYOUT ( \ 153[_ADJUST] = LAYOUT ( \
170 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_UP, KC_F9, KC_F10, \ 154 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_UP, KC_F9, KC_F10, \
171 KC_F11, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_F12, \ 155 KC_F11, RESET, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_F12, \
172 _______, QWERTY, COLEMAK, DVORAK, _______, RESET, _______, _______, _______, _______, \ 156 _______, QWERTY, COLEMAK, DVORAK, _______, RESET, _______, _______, _______, _______, \
173 _______, _______, _______, _______, _______, _______ \ 157 _______, _______, _______, _______, _______, _______ \
174) 158 )
175}; 159};
160// clang-format on
176 161
177void persistent_default_layer_set(uint16_t default_layer) { 162#ifdef AUDIO_ENABLE
178 eeconfig_update_default_layer(default_layer); 163float tone_qwerty[][2] = SONG(QWERTY_SOUND);
179 default_layer_set(default_layer); 164float tone_dvorak[][2] = SONG(DVORAK_SOUND);
180}; 165float tone_colemak[][2] = SONG(COLEMAK_SOUND);
166#endif
181 167
182void matrix_init_user(void) { 168void matrix_init_user(void) {
183 // This will disable the red LEDs on the ProMicros 169#ifdef BOOTLOADER_CATERINA
184 DDRD &= ~(1<<5); 170 // This will disable the red LEDs on the ProMicros
185 PORTD &= ~(1<<5); 171 setPinInput(D5);
186 DDRB &= ~(1<<0); 172 writePinLow(D5);
187 PORTB &= ~(1<<0); 173 setPinInput(B0);
174 writePinLow(B0);
175#endif
188}; 176};
189 177
178layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); };
179
190bool process_record_user(uint16_t keycode, keyrecord_t *record) { 180bool process_record_user(uint16_t keycode, keyrecord_t *record) {
191 switch (keycode) { 181 if (record->event.pressed) {
192 case QWERTY: 182 switch (keycode) {
193 if (record->event.pressed) { 183 case QWERTY:
194 persistent_default_layer_set(1UL<<_QWERTY); 184 set_single_persistent_default_layer(_QWERTY);
195 } 185 return false;
196 return false; 186 case COLEMAK:
197 break; 187 set_single_persistent_default_layer(_COLEMAK);
198 case COLEMAK: 188 return false;
199 if (record->event.pressed) { 189 case DVORAK:
200 persistent_default_layer_set(1UL<<_COLEMAK); 190 set_single_persistent_default_layer(_DVORAK);
201 } 191 return false;
202 return false; 192 }
203 break; 193 }
204 case DVORAK:
205 if (record->event.pressed) {
206 persistent_default_layer_set(1UL<<_DVORAK);
207 }
208 return false;
209 break;
210 case LOWER:
211 if (record->event.pressed) {
212 layer_on(_LOWER);
213 update_tri_layer(_LOWER, _RAISE, _ADJUST);
214 } else {
215 layer_off(_LOWER);
216 update_tri_layer(_LOWER, _RAISE, _ADJUST);
217 }
218 return false;
219 break;
220 case RAISE:
221 if (record->event.pressed) {
222 layer_on(_RAISE);
223 update_tri_layer(_LOWER, _RAISE, _ADJUST);
224 } else {
225 layer_off(_RAISE);
226 update_tri_layer(_LOWER, _RAISE, _ADJUST);
227 }
228 return false;
229 break;
230 }
231 return true; 194 return true;
232}; 195} \ No newline at end of file