diff options
Diffstat (limited to 'devices/qmk/shared')
| -rw-r--r-- | devices/qmk/shared/config.h | 6 | ||||
| -rw-r--r-- | devices/qmk/shared/leader.c | 38 | ||||
| -rw-r--r-- | devices/qmk/shared/rules.mk | 12 |
3 files changed, 56 insertions, 0 deletions
diff --git a/devices/qmk/shared/config.h b/devices/qmk/shared/config.h new file mode 100644 index 0000000..140922d --- /dev/null +++ b/devices/qmk/shared/config.h @@ -0,0 +1,6 @@ +#define CTL_ESC LCTL_T(KC_ESC) +#define TAPPING_TOGGLE 2 + +#define LEADER_NO_TIMEOUT +#define LEADER_TIMEOUT 250 +#define LEADER_PER_KEY_TIMING diff --git a/devices/qmk/shared/leader.c b/devices/qmk/shared/leader.c new file mode 100644 index 0000000..fd8ae82 --- /dev/null +++ b/devices/qmk/shared/leader.c @@ -0,0 +1,38 @@ +LEADER_EXTERNS(); + +void matrix_scan_user(void) { + LEADER_DICTIONARY() { + leading = false; + leader_end(); + + // G + SEQ_ONE_KEY(LSFT(KC_G)) { + tap_code(KC_END); + } + + // G + SEQ_ONE_KEY(RSFT(KC_G)) { + tap_code(KC_END); + } + + // gg + SEQ_TWO_KEYS(KC_G, KC_G) { + tap_code(KC_HOME); + } + + // d + SEQ_ONE_KEY(KC_D) { + tap_code(KC_PGDN); + } + + // u + SEQ_ONE_KEY(KC_U) { + tap_code(KC_PGUP); + } + + // reset + SEQ_FIVE_KEYS(KC_R, KC_E, KC_S, KC_E, KC_T) { + reset_keyboard(); + } + } +} diff --git a/devices/qmk/shared/rules.mk b/devices/qmk/shared/rules.mk new file mode 100644 index 0000000..1636b99 --- /dev/null +++ b/devices/qmk/shared/rules.mk @@ -0,0 +1,12 @@ +# SRC += leader.c + +CONSOLE_ENABLE = no +COMMAND_ENABLE = yes +EXTRAKEY_ENABLE = yes +BACKLIGHT_ENABLE = no +RGBLIGHT_ENABLE = no +SLEEP_LED_ENABLE = no +NKRO_ENABLE = no +BLUETOOTH_ENABLE = no +AUDIO_ENABLE = no +LEADER_ENABLE = yes |
