1
0
Fork 0

[Keymap] modify ergodox_ez / dvorak_42_key layout (#6832)

* add macros for windows 10 workspace switching

* change debounce settings

* add comment

* remove debounce
This commit is contained in:
lucwastiaux 2019-10-08 23:43:54 +08:00 committed by noroadsleft
parent 49fdd386b2
commit d00326ecb3

View file

@ -15,6 +15,12 @@
// pushing dev branch
// git push origin dev:dev
// debounce settings
// remove these after getting a new keyboard
// #define DEBOUNCE 50
// #define QMK_KEYS_PER_SCAN 4
enum custom_keycodes {
PLACEHOLDER = SAFE_RANGE, // can always be here
EPRM,
@ -52,6 +58,9 @@ enum custom_keycodes {
CLOUD9_GOTO_LINE,
CLOUD9_NAVIGATE,
// Windows 10 macros,
WINDOWS10_WORKSPACE_LEFT,
WINDOWS10_WORKSPACE_RIGHT,
};
@ -161,7 +170,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
MEH(KC_1), OSM(MOD_LSFT), OSM(MOD_LCTL), MO(KEYSEL), MO(BROWSER_CONTROL),
// left thumb cluster
MEH(KC_4), MEH(KC_5),
WINDOWS10_WORKSPACE_LEFT, WINDOWS10_WORKSPACE_RIGHT,
MEH(KC_6),
MO(COMBINED),MO(KEYNAV), OSM(MOD_LALT),
@ -639,6 +648,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SEND_STRING(SS_LCTRL("e"));
return true;
break;
case WINDOWS10_WORKSPACE_LEFT:
SEND_STRING(SS_LGUI(SS_LCTRL(SS_TAP(X_LEFT))));
return true;
break;
case WINDOWS10_WORKSPACE_RIGHT:
SEND_STRING(SS_LGUI(SS_LCTRL(SS_TAP(X_RIGHT))));
break;
}
}