mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-06 11:50:36 -04:00
Polish and cleanup
- Redid the tap hold to simplify maintenance - moved the ploopy nano stuff into tap hold - removed all mention of function layer - added double taps for programming macros
This commit is contained in:
parent
7c665ff65a
commit
082926a4e1
9 changed files with 217 additions and 232 deletions
|
@ -13,44 +13,36 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
|
||||
switch (keycode) {
|
||||
|
||||
case BASELYR:
|
||||
if (record->event.pressed) {
|
||||
current_base_layer = (current_base_layer + 1) % NUM_BASE_LAYER;
|
||||
set_single_persistent_default_layer(current_base_layer);
|
||||
}
|
||||
return false;
|
||||
|
||||
case PN_DRGS:
|
||||
if (record->event.pressed) {
|
||||
double_tap(KC_NUM, WAIT_DELAY);
|
||||
}
|
||||
return false;
|
||||
|
||||
case PN_PDPI:
|
||||
if (record->event.pressed) {
|
||||
double_tap(KC_CAPS, WAIT_DELAY);
|
||||
}
|
||||
return false;
|
||||
|
||||
//https://docs.qmk.fm/#/mod_tap?id=changing-both-tasp-and-hold
|
||||
//https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press
|
||||
//https://www.jonashietala.se/series/t-34/ he focuses on a keymap for programming/VIM
|
||||
case TR_LCBR:
|
||||
case TR_LABK:
|
||||
case TR_LBRC:
|
||||
case TR_SQUO:
|
||||
case TR_DQUO:
|
||||
case TR_LPRN:
|
||||
case TR_COMM:
|
||||
case TR_DOT:
|
||||
case TR_PERC:
|
||||
case TR_EQL:
|
||||
case TR_MINS:
|
||||
case TR_GRV:
|
||||
case TH_SCLN:
|
||||
case TR_QUOT:
|
||||
return process_tap_hold_key(record, keycode);
|
||||
case BASELYR:
|
||||
if (record->event.pressed) {
|
||||
current_base_layer = (current_base_layer + 1) % NUM_BASE_LAYER;
|
||||
set_single_persistent_default_layer(current_base_layer);
|
||||
}
|
||||
return false;
|
||||
|
||||
//https://docs.qmk.fm/#/mod_tap?id=changing-both-tasp-and-hold
|
||||
//https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press
|
||||
//https://www.jonashietala.se/series/t-34/ he focuses on a keymap for programming/VIM
|
||||
case TR_LCBR:
|
||||
case TR_LABK:
|
||||
case TR_LBRC:
|
||||
case TR_LPRN:
|
||||
case TR_SQUO:
|
||||
case TR_DQUO:
|
||||
case TR_EQL:
|
||||
case TR_PLUS:
|
||||
case TR_PIPE:
|
||||
case TR_COMM:
|
||||
case TR_DOT:
|
||||
case TR_PERC:
|
||||
case TR_EXLM:
|
||||
case TR_MINS:
|
||||
case TR_GRV:
|
||||
case TH_SCLN:
|
||||
case TR_QUOT:
|
||||
case PN_DRGS:
|
||||
case PN_PDPI:
|
||||
return process_tap_hold_key(record, keycode);
|
||||
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue