aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xd75/keymaps
diff options
context:
space:
mode:
authorMarkus Weimar <mail@markusweimar.de>2019-04-19 16:27:23 +0200
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-04-19 07:27:23 -0700
commit5ed7d9c9ca48e1b6f3610f62bb12668d1f75a845 (patch)
tree2aadb9698e9c11dd38826c317fa90dcf0542d03e /keyboards/xd75/keymaps
parente3a940026ead4a3b4d0a9f536bd4cc5153e4140b (diff)
downloadqmk_firmware-5ed7d9c9ca48e1b6f3610f62bb12668d1f75a845.tar.gz
qmk_firmware-5ed7d9c9ca48e1b6f3610f62bb12668d1f75a845.zip
Update XD75 keymap by markus (#5651)
Diffstat (limited to 'keyboards/xd75/keymaps')
-rw-r--r--keyboards/xd75/keymaps/markus/config.h39
-rw-r--r--keyboards/xd75/keymaps/markus/keymap.c127
-rw-r--r--keyboards/xd75/keymaps/markus/readme.md8
-rw-r--r--keyboards/xd75/keymaps/markus/rules.mk36
4 files changed, 109 insertions, 101 deletions
diff --git a/keyboards/xd75/keymaps/markus/config.h b/keyboards/xd75/keymaps/markus/config.h
index 4e4e6f0d7..a3e163171 100644
--- a/keyboards/xd75/keymaps/markus/config.h
+++ b/keyboards/xd75/keymaps/markus/config.h
@@ -1,4 +1,4 @@
1/* Copyright 2018 Markus Weimar 1/* Copyright 2019 Markus Weimar
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -18,12 +18,31 @@
18 18
19// place overrides here 19// place overrides here
20 20
21// Mousekeys 21// Mouse keys (accelerated)
22#define MOUSEKEY_MOVE_DELTA 1 22//#define MOUSEKEY_MOVE_DELTA 1
23#define MOUSEKEY_WHEEL_DELTA 1 23//#define MOUSEKEY_WHEEL_DELTA 1
24#define MOUSEKEY_DELAY 90 24//#define MOUSEKEY_DELAY 90
25#define MOUSEKEY_INTERVAL 16 25//#define MOUSEKEY_INTERVAL 16
26#define MOUSEKEY_MAX_SPEED 20 26//#define MOUSEKEY_MAX_SPEED 20
27#define MOUSEKEY_TIME_TO_MAX 0 27//#define MOUSEKEY_TIME_TO_MAX 0
28#define MOUSEKEY_WHEEL_MAX_SPEED 1 28//#define MOUSEKEY_WHEEL_MAX_SPEED 1
29#define MOUSEKEY_WHEEL_TIME_TO_MAX 0 29//#define MOUSEKEY_WHEEL_TIME_TO_MAX 0
30// Mouse keys (constant)
31#define MK_3_SPEED
32#define MK_MOMENTARY_ACCEL
33#define MK_C_OFFSET_UNMOD 18
34#define MK_C_INTERVAL_UNMOD 16
35#define MK_C_OFFSET_0 2
36#define MK_C_INTERVAL_0 16
37#define MK_C_OFFSET_1 6
38#define MK_C_INTERVAL_1 16
39#define MK_C_OFFSET_2 36
40#define MK_C_INTERVAL_2 16
41#define MK_W_OFFSET_UNMOD 1
42#define MK_W_INTERVAL_UNMOD 40
43#define MK_W_OFFSET_0 1
44#define MK_W_INTERVAL_0 360
45#define MK_W_OFFSET_1 1
46#define MK_W_INTERVAL_1 120
47#define MK_W_OFFSET_2 1
48#define MK_W_INTERVAL_2 20
diff --git a/keyboards/xd75/keymaps/markus/keymap.c b/keyboards/xd75/keymaps/markus/keymap.c
index eaf620151..9b8ab52fc 100644
--- a/keyboards/xd75/keymaps/markus/keymap.c
+++ b/keyboards/xd75/keymaps/markus/keymap.c
@@ -1,4 +1,4 @@
1/* Copyright 2018 Markus Weimar 1/* Copyright 2019 Markus Weimar
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -19,30 +19,29 @@
19 19
20#define ________ KC_TRNS 20#define ________ KC_TRNS
21#define ___xx___ KC_NO 21#define ___xx___ KC_NO
22#define NKRO_TG MAGIC_TOGGLE_NKRO
23 22
24enum my_layers { 23enum my_layers {
25 _QWZ, 24 _QWZ,
26 _QWY, 25 _QWY,
27 _GAM, 26 _GAM,
28 _FN1, 27 _FN1,
29 _FN2, 28 _FN2,
30 _FN3, 29 _FN3,
31}; 30};
32 31
33enum my_keycodes { 32enum my_keycodes {
34 QWERTZ = SAFE_RANGE, 33 QWERTZ = SAFE_RANGE,
35 QWERTY, 34 QWERTY,
36 GAMING, 35 GAMING,
37 FN1, 36 FN1,
38 FN2, 37 FN2,
39 FN3 38 FN3
40}; 39};
41 40
42enum my_ucis { 41enum my_ucis {
43 UNI_LNX, 42 UNI_LNX,
44 UNI_MAC, 43 UNI_MAC,
45 UNI_WIN, 44 UNI_WIN,
46}; 45};
47 46
48const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 47const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
@@ -118,7 +117,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
118 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 117 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
119 * | | " | ' | ‚ | ‘ | ’ | | | | | | [ | ] | ! | ? | | 118 * | | " | ' | ‚ | ‘ | ’ | | | | | | [ | ] | ! | ? | |
120 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 119 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
121 * | | ° | ^ | „ | “ | ” | | | | # | < | > | … | – | | 120 * | | ° | ^ | „ | “ | ” | | | | # | < | > | … | – EN | |
122 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 121 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
123 * | | | | | | | | | | | | | | | | 122 * | | | | | | | | | | | | | | | |
124 * '--------------------------------------------------------------------------------------------------------------------------------------' 123 * '--------------------------------------------------------------------------------------------------------------------------------------'
@@ -133,19 +132,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
133 132
134/* FN2 133/* FN2
135 * .--------------------------------------------------------------------------------------------------------------------------------------. 134 * .--------------------------------------------------------------------------------------------------------------------------------------.
136 * | | | | | % | ( | ) | P/ | P* | P- | Print | Scroll | Pause | ẞ | | 135 * | | | | | % | ( | ) | P/ | P* | P- | Print | Scroll | Pause | ẞ | − MNS |
137 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 136 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
138 * | | | Mute | Vol- | Vol+ | Bspc | P7 | P8 | P9 | P+ | WH_U | MS_U | WH_D | × | ÷ | 137 * | | | Mute | Vol- | Vol+ | Bspc | P7 | P8 | P9 | P+ | WH_U | MS_U | WH_D | × | ÷ |
139 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 138 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
140 * | | App | ACL0 | ACL1 | ACL2 | Space | P4 | P5 | P6 | WH_L | MS_L | MS_D | MS_R | WH_R | | 139 * | | App | ACL2 | ACL1 | ACL0 | Space | P4 | P5 | P6 | WH_L | MS_L | MS_D | MS_R | WH_R | |
141 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 140 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
142 * | | | Prev | Play | Next | Tab | P1 | P2 | P3 | PEnter | BTN1 | BTN2 | BTN3 | — | | 141 * | | | Prev | Play | Next | Tab | P1 | P2 | P3 | PEnter | BTN1 | BTN2 | BTN3 | — EM | |
143 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 142 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
144 * | Fn2 | | | | | PEnter | P0 | . : | P, | BTN1 | BTN2 | BTN3 | | | | 143 * | Fn2 | | | | | PEnter | P0 | . : | P, | BTN1 | BTN2 | BTN3 | | | |
145 * '--------------------------------------------------------------------------------------------------------------------------------------' 144 * '--------------------------------------------------------------------------------------------------------------------------------------'
146 */ 145 */
147[_FN2] = { 146[_FN2] = {
148{ ___xx___, ___xx___, ___xx___, ___xx___, DE_PERC, DE_LPRN, DE_RPRN, KC_PSLS, KC_PAST, KC_PMNS, KC_PSCR, KC_LSCR, KC_PAUS, UC(L'ẞ'), ___xx___ }, 147{ ___xx___, ___xx___, ___xx___, ___xx___, DE_PERC, DE_LPRN, DE_RPRN, KC_PSLS, KC_PAST, KC_PMNS, KC_PSCR, KC_LSCR, KC_PAUS, UC(L'ẞ'), UC(L'−') },
149{ ________, ___xx___, KC_MUTE, KC_VOLD, KC_VOLU, KC_BSPC, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_WH_U, KC_MS_U, KC_WH_D, UC(L'×'), UC(L'÷') }, 148{ ________, ___xx___, KC_MUTE, KC_VOLD, KC_VOLU, KC_BSPC, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_WH_U, KC_MS_U, KC_WH_D, UC(L'×'), UC(L'÷') },
150{ ________, KC_APP, KC_ACL2, KC_ACL1, KC_ACL0, KC_SPC, KC_P4, KC_P5, KC_P6, KC_WH_L, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_R, ________ }, 149{ ________, KC_APP, KC_ACL2, KC_ACL1, KC_ACL0, KC_SPC, KC_P4, KC_P5, KC_P6, KC_WH_L, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_R, ________ },
151{ ________, ___xx___, KC_MPRV, KC_MPLY, KC_MNXT, KC_TAB, KC_P1, KC_P2, KC_P3, KC_PENT, KC_BTN1, KC_BTN2, KC_BTN3, UC(L'—'), ________ }, 150{ ________, ___xx___, KC_MPRV, KC_MPLY, KC_MNXT, KC_TAB, KC_P1, KC_P2, KC_P3, KC_PENT, KC_BTN1, KC_BTN2, KC_BTN3, UC(L'—'), ________ },
@@ -156,61 +155,61 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
156 * .--------------------------------------------------------------------------------------------------------------------------------------. 155 * .--------------------------------------------------------------------------------------------------------------------------------------.
157 * | F13 | F14 | F15 | F16 | F17 | F18 | U LNX | U WIN | U MAC | F19 | F20 | F21 | F22 | F23 | F24 | 156 * | F13 | F14 | F15 | F16 | F17 | F18 | U LNX | U WIN | U MAC | F19 | F20 | F21 | F22 | F23 | F24 |
158 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 157 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
159 * | | QWERTZ | QWERTY | | NKRO | ThinSp | L TOG | L MP | L MOD | | Pg Up | Up | Pg Dn | | | 158 * | | QWERTZ | QWERTY | GAMING | | | L TOG | L MP | L MOD | | Pg Up | Up | Pg Dn | | |
160 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 159 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
161 * | | NaNbSp | | › | ‹ | GAMING | L HUI | L SAI | L VAI | Home | Left | Down | Right | End | | 160 * | | | | › | ‹ | | L HUI | L SAI | L VAI | Home | Left | Down | Right | End | |
162 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 161 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
163 * | | | | » | « | | L HUD | L SAD | L VAD | FigSp | | | | NbHyph | | 162 * | | | | » | « | | L HUD | L SAD | L VAD | NumSp | ThinSp | NaNbSp | NbSp | NbHyph | |
164 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 163 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
165 * | | | | | | | | Reset | | NbSp | | | | | | 164 * | | | | | | | | Reset | | | | | | | |
166 * '--------------------------------------------------------------------------------------------------------------------------------------' 165 * '--------------------------------------------------------------------------------------------------------------------------------------'
167 */ 166 */
168[_FN3] = { 167[_FN3] = {
169{ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, UNI_LNX, UNI_WIN, UNI_MAC, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24 }, 168{ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, UNI_LNX, UNI_WIN, UNI_MAC, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24 },
170{ ________, QWERTZ, QWERTY, ___xx___, NKRO_TG, UC(L' '), RGB_TOG, RGB_M_P, RGB_MOD, ___xx___, KC_PGUP, KC_UP, KC_PGDN, ___xx___, ___xx___ }, 169{ ________, QWERTZ, QWERTY, GAMING, ___xx___, ___xx___, RGB_TOG, RGB_M_P, RGB_MOD, ___xx___, KC_PGUP, KC_UP, KC_PGDN, ___xx___, ___xx___ },
171{ ________, UC(L' '), ___xx___, UC(L'›'), UC(L'‹'), GAMING, RGB_HUI, RGB_SAI, RGB_VAI, KC_HOME, KC_LEFT, KC_DOWN, KC_RIGHT, KC_END, ________ }, 170{ ________, ___xx___, ___xx___, UC(L'›'), UC(L'‹'), ___xx___, RGB_HUI, RGB_SAI, RGB_VAI, KC_HOME, KC_LEFT, KC_DOWN, KC_RIGHT, KC_END, ________ },
172{ ________, ___xx___, ___xx___, UC(L'»'), UC(L'«'), ___xx___, RGB_HUD, RGB_SAD, RGB_VAD, UC(L' '), ___xx___, ___xx___, ___xx___, UC(L'‑'), ________ }, 171{ ________, ___xx___, ___xx___, UC(L'»'), UC(L'«'), ___xx___, RGB_HUD, RGB_SAD, RGB_VAD, UC(L' '), UC(L' '), UC(L' '), UC(L' '), UC(L'‑'), ________ },
173{ ___xx___, ________, ________, ________, ________, ________, ________, RESET, ________, UC(L' '), ________, ________, ________, ________, ________ }, 172{ ___xx___, ________, ________, ________, ________, ________, ________, RESET, ________, ________, ________, ________, ________, ________, ________ },
174}, 173},
175 174
176}; 175};
177 176
178void matrix_init_user(){ 177void matrix_init_user(){
179 set_unicode_input_mode(UC_LNX); 178 set_unicode_input_mode(UC_LNX);
180} 179}
181 180
182bool process_record_user(uint16_t keycode, keyrecord_t *record) { 181bool process_record_user(uint16_t keycode, keyrecord_t *record) {
183 switch(keycode) { 182 switch(keycode) {
184 case QWERTZ: 183 case QWERTZ:
185 if (record->event.pressed) { 184 if (record->event.pressed) {
186 set_single_persistent_default_layer(_QWZ); 185 set_single_persistent_default_layer(_QWZ);
187 } 186 }
188 return false; 187 return false;
189 break; 188 break;
190 case QWERTY: 189 case QWERTY:
191 if (record->event.pressed) { 190 if (record->event.pressed) {
192 set_single_persistent_default_layer(_QWY); 191 set_single_persistent_default_layer(_QWY);
193 } 192 }
194 return false; 193 return false;
195 break; 194 break;
196 case GAMING: 195 case GAMING:
197 if (record->event.pressed) { 196 if (record->event.pressed) {
198 set_single_persistent_default_layer(_GAM); 197 set_single_persistent_default_layer(_GAM);
199 } 198 }
200 return false; 199 return false;
201 break; 200 break;
202 case UNI_LNX: 201 case UNI_LNX:
203 set_unicode_input_mode(UC_LNX); 202 set_unicode_input_mode(UC_LNX);
204 return false; 203 return false;
205 break; 204 break;
206 case UNI_WIN: 205 case UNI_WIN:
207 set_unicode_input_mode(UC_WINC); 206 set_unicode_input_mode(UC_WINC);
208 return false; 207 return false;
209 break; 208 break;
210 case UNI_MAC: 209 case UNI_MAC:
211 set_unicode_input_mode(UC_OSX); 210 set_unicode_input_mode(UC_OSX);
212 return false; 211 return false;
213 break; 212 break;
214 } 213 }
215 return true; 214 return true;
216} 215}
diff --git a/keyboards/xd75/keymaps/markus/readme.md b/keyboards/xd75/keymaps/markus/readme.md
index 926281240..fc5959bcd 100644
--- a/keyboards/xd75/keymaps/markus/readme.md
+++ b/keyboards/xd75/keymaps/markus/readme.md
@@ -2,15 +2,15 @@
2 2
3This keymap has three base layers (QWERTZ, QWERTY, Gaming) and three function layers (Fn1, Fn2, Fn3). 3This keymap has three base layers (QWERTZ, QWERTY, Gaming) and three function layers (Fn1, Fn2, Fn3).
4 4
5QWERTY is identical to QWERTZ except `z` and `y` are swapped. 5QWERTY is identical to QWERTZ, except `z` and `y` are swapped.
6 6
7Gaming is a modified QWERTY layer for left-hand usage. 7Gaming is a modified QWERTY layer for left-hand usage.
8 8
9The function layers contain: 9The function layers contain:
10 10
11* Symbols (standard and Unicode) 11* Symbols
12* Unicode characters (e.g. dashes, figure space, non-breaking space and hyphen)
12* Unicode input mode switches 13* Unicode input mode switches
13* Numpad 14* Numpad
14* Function keys 15* Function keys
15* Media, mouse, LED control 16* Media, mouse and LED controls
16* Non-breaking characters
diff --git a/keyboards/xd75/keymaps/markus/rules.mk b/keyboards/xd75/keymaps/markus/rules.mk
index d0ed9a73a..22befc534 100644
--- a/keyboards/xd75/keymaps/markus/rules.mk
+++ b/keyboards/xd75/keymaps/markus/rules.mk
@@ -1,23 +1,13 @@
1# Build Options 1BOOTMAGIC_ENABLE = no
2# change to "no" to disable the options, or define them in the Makefile in 2MOUSEKEY_ENABLE = yes
3# the appropriate keymap folder that will get included automatically 3EXTRAKEY_ENABLE = yes
4# 4CONSOLE_ENABLE = no
5BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 5COMMAND_ENABLE = no
6MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 6NKRO_ENABLE = yes
7EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 7BACKLIGHT_ENABLE = no
8CONSOLE_ENABLE = no # Console for debug(+400) 8MIDI_ENABLE = no
9COMMAND_ENABLE = no # Commands for debug and configuration 9AUDIO_ENABLE = no
10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 10UNICODE_ENABLE = yes
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 11BLUETOOTH_ENABLE = no
12MIDI_ENABLE = no # MIDI controls 12RGBLIGHT_ENABLE = yes
13AUDIO_ENABLE = no # Audio output on port C6 13SLEEP_LED_ENABLE = no
14UNICODEMAP_ENABLE = no # This allows sending unicode symbols using X(<unicode>) in your keymap.
15UNICODE_ENABLE = yes # Unicode
16UCIS_ENABLE = no # Keep in mind that not all will work (See WinCompose for details on Windows).
17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
18RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
19API_SYSEX_ENABLE = no
20
21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
23