[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:
parent
49fdd386b2
commit
d00326ecb3
1 changed files with 33 additions and 17 deletions
|
@ -15,6 +15,12 @@
|
||||||
// pushing dev branch
|
// pushing dev branch
|
||||||
// git push origin dev:dev
|
// 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 {
|
enum custom_keycodes {
|
||||||
PLACEHOLDER = SAFE_RANGE, // can always be here
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
||||||
EPRM,
|
EPRM,
|
||||||
|
@ -52,6 +58,9 @@ enum custom_keycodes {
|
||||||
CLOUD9_GOTO_LINE,
|
CLOUD9_GOTO_LINE,
|
||||||
CLOUD9_NAVIGATE,
|
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),
|
MEH(KC_1), OSM(MOD_LSFT), OSM(MOD_LCTL), MO(KEYSEL), MO(BROWSER_CONTROL),
|
||||||
|
|
||||||
// left thumb cluster
|
// left thumb cluster
|
||||||
MEH(KC_4), MEH(KC_5),
|
WINDOWS10_WORKSPACE_LEFT, WINDOWS10_WORKSPACE_RIGHT,
|
||||||
MEH(KC_6),
|
MEH(KC_6),
|
||||||
MO(COMBINED),MO(KEYNAV), OSM(MOD_LALT),
|
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"));
|
SEND_STRING(SS_LCTRL("e"));
|
||||||
return true;
|
return true;
|
||||||
break;
|
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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue