aboutsummaryrefslogtreecommitdiff
path: root/keyboards/thevankeyboards
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/thevankeyboards
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/thevankeyboards')
-rw-r--r--keyboards/thevankeyboards/minivan/keymaps/xyverz/keymap.c84
1 files changed, 20 insertions, 64 deletions
diff --git a/keyboards/thevankeyboards/minivan/keymaps/xyverz/keymap.c b/keyboards/thevankeyboards/minivan/keymaps/xyverz/keymap.c
index 059b7eb46..f5649573d 100644
--- a/keyboards/thevankeyboards/minivan/keymaps/xyverz/keymap.c
+++ b/keyboards/thevankeyboards/minivan/keymaps/xyverz/keymap.c
@@ -1,24 +1,8 @@
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
5enum planck_layers { 5enum custom_keycodes { QWERTY = SAFE_RANGE, COLEMAK, DVORAK, LOWER, RAISE, ADJUST };
6 _QWERTY,
7 _COLEMAK,
8 _DVORAK,
9 _LOWER,
10 _RAISE,
11 _ADJUST
12};
13
14enum planck_keycodes {
15 DVORAK = SAFE_RANGE,
16 QWERTY,
17 COLEMAK,
18 LOWER,
19 RAISE,
20 ADJUST
21};
22 6
23// Aliases for some other things I want to try out 7// Aliases for some other things I want to try out
24#define RAI_ESC LT(_RAISE, KC_ESC) 8#define RAI_ESC LT(_RAISE, KC_ESC)
@@ -26,6 +10,7 @@ enum planck_keycodes {
26#define LOW_MIN LT(_LOWER, KC_MINS) // Same as above, but for Dvorak layer 10#define LOW_MIN LT(_LOWER, KC_MINS) // Same as above, but for Dvorak layer
27#define GUIBSPC GUI_T(KC_BSPC) 11#define GUIBSPC GUI_T(KC_BSPC)
28 12
13// clang-format off
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 14const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30 [_DVORAK] = LAYOUT( /* 0: Dvorak */ 15 [_DVORAK] = LAYOUT( /* 0: Dvorak */
31 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, 16 KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH,
@@ -69,52 +54,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
69 KC_HOME, KC_END, _______, _______, _______, _______, KC_PGUP, KC_PGDN 54 KC_HOME, KC_END, _______, _______, _______, _______, KC_PGUP, KC_PGDN
70 ) 55 )
71}; 56};
57// clang-format on
72 58
73void persistent_default_layer_set(uint16_t default_layer) { 59layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); };
74 eeconfig_update_default_layer(default_layer);
75 default_layer_set(default_layer);
76}
77 60
78bool process_record_user(uint16_t keycode, keyrecord_t *record) { 61bool process_record_user(uint16_t keycode, keyrecord_t *record) {
79 switch (keycode) { 62 if (record->event.pressed) {
80 case QWERTY: 63 switch (keycode) {
81 if (record->event.pressed) { 64 case QWERTY:
82 persistent_default_layer_set(1UL<<_QWERTY); 65 set_single_persistent_default_layer(_QWERTY);
83 } 66 return false;
84 return false; 67 case COLEMAK:
85 break; 68 set_single_persistent_default_layer(_COLEMAK);
86 case COLEMAK: 69 return false;
87 if (record->event.pressed) { 70 case DVORAK:
88 persistent_default_layer_set(1UL<<_COLEMAK); 71 set_single_persistent_default_layer(_DVORAK);
89 } 72 return false;
90 return false; 73 }
91 break; 74 }
92 case DVORAK: 75 return true;
93 if (record->event.pressed) { 76} \ No newline at end of file
94 persistent_default_layer_set(1UL<<_DVORAK);
95 }
96 return false;
97 break;
98 case LOWER:
99 if (record->event.pressed) {
100 layer_on(_LOWER);
101 update_tri_layer(_LOWER, _RAISE, _ADJUST);
102 } else {
103 layer_off(_LOWER);
104 update_tri_layer(_LOWER, _RAISE, _ADJUST);
105 }
106 return false;
107 break;
108 case RAISE:
109 if (record->event.pressed) {
110 layer_on(_RAISE);
111 update_tri_layer(_LOWER, _RAISE, _ADJUST);
112 } else {
113 layer_off(_RAISE);
114 update_tri_layer(_LOWER, _RAISE, _ADJUST);
115 }
116 return false;
117 break;
118 }
119 return true;
120}