aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio
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/keebio
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/keebio')
-rw-r--r--keyboards/keebio/fourier/keymaps/xyverz/config.h33
-rw-r--r--keyboards/keebio/fourier/keymaps/xyverz/keymap.c84
-rw-r--r--keyboards/keebio/iris/keymaps/xyverz/keymap.c113
3 files changed, 46 insertions, 184 deletions
diff --git a/keyboards/keebio/fourier/keymaps/xyverz/config.h b/keyboards/keebio/fourier/keymaps/xyverz/config.h
deleted file mode 100644
index 9b46a61cc..000000000
--- a/keyboards/keebio/fourier/keymaps/xyverz/config.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef CONFIG_USER_H
22#define CONFIG_USER_H
23
24#include "config_common.h"
25
26/* Use I2C or Serial, not both */
27
28#define USE_SERIAL
29// #define USE_I2C
30
31#define EE_HANDS
32
33#endif
diff --git a/keyboards/keebio/fourier/keymaps/xyverz/keymap.c b/keyboards/keebio/fourier/keymaps/xyverz/keymap.c
deleted file mode 100644
index 4e864cdef..000000000
--- a/keyboards/keebio/fourier/keymaps/xyverz/keymap.c
+++ /dev/null
@@ -1,84 +0,0 @@
1#include QMK_KEYBOARD_H
2#include "action_layer.h"
3#include "eeconfig.h"
4
5extern keymap_config_t keymap_config;
6
7// Each layer gets a name for readability, which is then used in the keymap matrix below.
8// The underscores don't mean anything - you can have a layer called STUFF or any other name.
9// Layer names don't all need to be of the same length, obviously, and you can also skip them
10// entirely and just use numbers.
11#define _BASE 0
12#define _FN1 1
13#define _FN2 2
14
15enum custom_keycodes {
16 QWERTY = SAFE_RANGE,
17};
18
19#define KC_ KC_TRNS
20#define KC_FN1 MO(_FN1)
21#define KC_FN2 MO(_FN2)
22#define KC_ESFN1 LT(_FN1, KC_ESC)
23#define KC_SPFN1 LT(_FN1, KC_SPACE)
24#define KC_SPFN2 LT(_FN2, KC_SPACE)
25#define KC_BSFN1 LT(_FN1, KC_BSPC)
26#define KC_BSFN2 LT(_FN2, KC_BSPC)
27#define KC_RST RESET
28#define KC_DBUG DEBUG
29#define KC_RTOG RGB_TOG
30#define KC_RMOD RGB_MOD
31#define KC_RHUI RGB_HUI
32#define KC_RHUD RGB_HUD
33#define KC_RSAI RGB_SAI
34#define KC_RSAD RGB_SAD
35#define KC_RVAI RGB_VAI
36#define KC_RVAD RGB_VAD
37
38const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
39 [_BASE] = LAYOUT_kc(
40 //,----+----+----+----+----+----|----+----+----+----+----+----+----.
41 TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,SLSH,MINS,
42 //|----`----`----`----`----`----|----`----`----`----`----`----`----|
43 ESC , A , O , E , U , I , D , H , T , N , S , ENTER ,
44 //|-----`----`----`----`----`----|----`----`----`----`----`--------|
45 LSFT ,SCLN, Q , J , K , X , B , M , W , V , Z , RSFT ,
46 //|-------`----`----`----`----`----|----`----`----`----`----`------|
47 LCTL ,LALT,LGUI ,FN2 , BSPC , SPC , FN1 ,RGUI ,RALT , RCTL
48 //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
49 ),
50
51 [_FN1] = LAYOUT_kc(
52 //,----+----+----+----+----+----|----+----+----+----+----+----+----.
53 GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL ,
54 //|----`----`----`----`----`----|----`----`----`----`----`----`----|
55 CAPS ,RHUI,RSAI,RVAI,VOLU,LBRC,RBRC, , , ,SCLN, ,
56 //|-----`----`----`----`----`----|----`----`----`----`----`--------|
57 RMOD ,RHUD,RSAD,RVAD,VOLD,LCBR,RCBR, , , , UP , ,
58 //|-------`----`----`----`----`----|----`----`----`----`----`------|
59 RTOG , , , , DEL , INS , ,LEFT ,DOWN , RGHT
60 //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
61 ),
62
63 [_FN2] = LAYOUT_kc(
64 //,----+----+----+----+----+----|----+----+----+----+----+----+----.
65 TILD,EXLM, AT ,HASH,DLR ,PERC,CIRC,AMPR,ASTR,LPRN,RPRN,UNDS,PLUS,
66 //|----`----`----`----`----`----|----`----`----`----`----`----`----|
67 CAPS , , ,INS ,PGUP,HOME, F1 , F2 , F3 , F4 , F5 , F6 ,
68 //|-----`----`----`----`----`----|----`----`----`----`----`--------|
69 , , ,DEL ,PGDN,END , F7 , F8 , F9 ,F10 ,F11 , F12 ,
70 //|-------`----`----`----`----`----|----`----`----`----`----`------|
71 , , , , DEL , INS , , , ,
72 //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
73 )
74
75};
76
77void matrix_init_user(void) {
78 // This will disable the red LEDs on the ProMicros
79 DDRD &= ~(1<<5);
80 PORTD &= ~(1<<5);
81 DDRB &= ~(1<<0);
82 PORTB &= ~(1<<0);
83};
84
diff --git a/keyboards/keebio/iris/keymaps/xyverz/keymap.c b/keyboards/keebio/iris/keymaps/xyverz/keymap.c
index 53bf32ac3..cc120c158 100644
--- a/keyboards/keebio/iris/keymaps/xyverz/keymap.c
+++ b/keyboards/keebio/iris/keymaps/xyverz/keymap.c
@@ -1,23 +1,26 @@
1#include QMK_KEYBOARD_H 1#include QMK_KEYBOARD_H
2#include "action_layer.h"
3#include "eeconfig.h"
4 2
5extern keymap_config_t keymap_config; 3extern keymap_config_t keymap_config;
6 4
7#define _QWERTY 0 5
8#define _COLEMAK 1 6enum layer_names {
9#define _DVORAK 2 7 _DVORAK,
10#define _LOWER 3 8 _QWERTY,
11#define _RAISE 4 9 _COLEMAK,
12#define _ADJUST 16 10 _WOW,
11 _LOWER,
12 _RAISE,
13 _ADJUST
14};
13 15
14enum custom_keycodes { 16enum custom_keycodes {
15 QWERTY = SAFE_RANGE, 17 DVORAK = SAFE_RANGE,
18 QWERTY,
16 COLEMAK, 19 COLEMAK,
17 DVORAK, 20 WOW,
18 LOWER, 21 LOWER,
19 RAISE, 22 RAISE,
20 ADJUST, 23 ADJUST
21}; 24};
22 25
23#define KC_____ KC_TRNS 26#define KC_____ KC_TRNS
@@ -28,10 +31,23 @@ enum custom_keycodes {
28#define KC_QWRT QWERTY 31#define KC_QWRT QWERTY
29#define KC_CLMK COLEMAK 32#define KC_CLMK COLEMAK
30#define KC_DVRK DVORAK 33#define KC_DVRK DVORAK
34#define KC_WOW WOW
31#define KC_BSLT ALT_T(KC_BSPC) 35#define KC_BSLT ALT_T(KC_BSPC)
36#define ADJUST MO(_ADJUST)
37#define LOWER MO(_LOWER)
38#define RAISE MO(_RAISE)
32 39
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34 41
42
43 [_DVORAK] = LAYOUT_kc (
44 GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSLS,
45 TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,SLSH,
46 ESC , A , O , E , U , I , D , H , T , N , S ,MINS,
47 LSFT,SCLN, Q , J , K , X ,LOWR, RASE, B , M , W , V , Z ,RSFT,
48 LCTL,BSLT,LGUI, ENT ,SPC ,LALT
49 ),
50
35 [_QWERTY] = LAYOUT_kc ( 51 [_QWERTY] = LAYOUT_kc (
36 EQL , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS, 52 EQL , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,
37 TAB , Q , W , E , R , T , Y , U , I , O , P ,BSLS, 53 TAB , Q , W , E , R , T , Y , U , I , O , P ,BSLS,
@@ -48,12 +64,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
48 LCTL,BSPC,LGUI, ENT ,SPC ,LALT 64 LCTL,BSPC,LGUI, ENT ,SPC ,LALT
49 ), 65 ),
50 66
51 [_DVORAK] = LAYOUT_kc ( 67 [_WOW] = LAYOUT_kc (
52 GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSLS, 68 GRV , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSLS,
53 TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,SLSH, 69 TAB ,QUOT,COMM,DOT , P , Y , F , G , C , R , L ,SLSH,
54 ESC , A , O , E , U , I , D , H , T , N , S ,MINS, 70 ESC , A , O , E , U , I , D , H , T , N , S ,MINS,
55 LSFT,SCLN, Q , J , K , X ,LOWR, RASE, B , M , W , V , Z ,RSFT, 71 LSFT,SCLN, Q , J , K , X ,LALT, RGUI, B , M , W , V , Z ,RSFT,
56 LCTL,BSLT,LGUI, ENT ,SPC ,LALT 72 LOWR,BSPC,LCTL, ENT ,SPC ,RASE
57 ), 73 ),
58 74
59 [_LOWER] = LAYOUT_kc ( 75 [_LOWER] = LAYOUT_kc (
@@ -75,7 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
75 [_ADJUST] = LAYOUT_kc ( 91 [_ADJUST] = LAYOUT_kc (
76 F11 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F12 , 92 F11 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F12 ,
77 ____,RST ,____,____,____,____, ____,____,____,____,____,____, 93 ____,RST ,____,____,____,____, ____,____,____,____,____,____,
78 ____,____,____,____,____,____, ____,QWRT,CLMK,DVRK,____,____, 94 ____,____,____,____,____,____, ____,QWRT,CLMK,DVRK,WOW ,____,
79 ____,____,____,____,____,____,____, ____,____,____,____,____,____,____, 95 ____,____,____,____,____,____,____, ____,____,____,____,____,____,____,
80 ____,____,____, ____,____,____ 96 ____,____,____, ____,____,____
81 ) 97 )
@@ -86,76 +102,39 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
86float tone_qwerty[][2] = SONG(QWERTY_SOUND); 102float tone_qwerty[][2] = SONG(QWERTY_SOUND);
87#endif 103#endif
88 104
89void persistent_default_layer_set(uint16_t default_layer) {
90 eeconfig_update_default_layer(default_layer);
91 default_layer_set(default_layer);
92}
93
94void matrix_init_user(void) { 105void matrix_init_user(void) {
95 // This will disable the red LEDs on the ProMicros 106 // This will disable the red LEDs on the ProMicros
96 DDRD &= ~(1<<5); 107 setPinOutput(D5);
97 PORTD &= ~(1<<5); 108 writePinLow(D5);
98 DDRB &= ~(1<<0); 109 setPinOutput(B0);
99 PORTB &= ~(1<<0); 110 writePinLow(B0);
100}; 111};
101 112
113layer_state_t layer_state_set_user(layer_state_t state) {
114 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
115}
102bool process_record_user(uint16_t keycode, keyrecord_t *record) { 116bool process_record_user(uint16_t keycode, keyrecord_t *record) {
103 switch (keycode) { 117 switch (keycode) {
104 case QWERTY:
105 if (record->event.pressed) {
106 #ifdef AUDIO_ENABLE
107 PLAY_SONG(tone_qwerty);
108 #endif
109 persistent_default_layer_set(1UL<<_QWERTY);
110 }
111 return false;
112 break;
113 case COLEMAK:
114 if (record->event.pressed) {
115 #ifdef AUDIO_ENABLE
116 PLAY_SONG(tone_colemak);
117 #endif
118 persistent_default_layer_set(1UL<<_COLEMAK);
119 }
120 return false;
121 break;
122 case DVORAK: 118 case DVORAK:
123 if (record->event.pressed) { 119 if (record->event.pressed) {
124 #ifdef AUDIO_ENABLE 120 set_single_persistent_default_layer(_DVORAK);
125 PLAY_SONG(tone_dvorak);
126 #endif
127 persistent_default_layer_set(1UL<<_DVORAK);
128 } 121 }
129 return false; 122 return false;
130 break; 123 case COLEMAK:
131 case LOWER:
132 if (record->event.pressed) { 124 if (record->event.pressed) {
133 layer_on(_LOWER); 125 set_single_persistent_default_layer(_COLEMAK);
134 update_tri_layer(_LOWER, _RAISE, _ADJUST);
135 } else {
136 layer_off(_LOWER);
137 update_tri_layer(_LOWER, _RAISE, _ADJUST);
138 } 126 }
139 return false; 127 return false;
140 break; 128 case QWERTY:
141 case RAISE:
142 if (record->event.pressed) { 129 if (record->event.pressed) {
143 layer_on(_RAISE); 130 set_single_persistent_default_layer(_QWERTY);
144 update_tri_layer(_LOWER, _RAISE, _ADJUST);
145 } else {
146 layer_off(_RAISE);
147 update_tri_layer(_LOWER, _RAISE, _ADJUST);
148 } 131 }
149 return false; 132 return false;
150 break; 133 case WOW:
151 case ADJUST:
152 if (record->event.pressed) { 134 if (record->event.pressed) {
153 layer_on(_ADJUST); 135 set_single_persistent_default_layer(_WOW);
154 } else {
155 layer_off(_ADJUST);
156 } 136 }
157 return false; 137 return false;
158 break;
159 } 138 }
160 return true; 139 return true;
161} 140} \ No newline at end of file