Andrew Rae
3 years ago
committed by
GitHub
31 changed files with 538 additions and 8 deletions
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,24 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (balanced decision moment key-up) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (balanced decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-timer (balanced decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (balanced decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
@ -0,0 +1,25 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
/* normal quick tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* hold */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* global quick tap */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,12 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-timer (balanced decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 1 new undecided hold_tap |
||||||
|
ht_decide: 1 decided hold-timer (balanced decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 1 cleaning up hold-tap |
@ -0,0 +1,20 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* hold the first mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
/* hold the second mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,1,400) |
||||||
|
/* press the normal key */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
|
||||||
|
/* release the hold taps */ |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,29 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
behaviors { |
||||||
|
ht_bal: behavior_balanced { |
||||||
|
compatible = "zmk,behavior-hold-tap"; |
||||||
|
label = "MOD_TAP"; |
||||||
|
#binding-cells = <2>; |
||||||
|
flavor = "balanced"; |
||||||
|
tapping-term-ms = <300>; |
||||||
|
quick-tap-ms = <300>; |
||||||
|
bindings = <&kp>, <&kp>; |
||||||
|
global-quick-tap; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
keymap { |
||||||
|
compatible = "zmk,keymap"; |
||||||
|
label ="Default keymap"; |
||||||
|
|
||||||
|
default_layer { |
||||||
|
bindings = < |
||||||
|
&ht_bal LEFT_SHIFT F &ht_bal LEFT_CONTROL C |
||||||
|
&kp D &none>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,24 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (hold-preferred decision moment key-up) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (hold-preferred decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-interrupt (hold-preferred decision moment other-key-down) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (hold-preferred decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
@ -0,0 +1,25 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
/* normal quick tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* hold */ |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* global quick tap */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,12 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-timer (hold-preferred decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 1 new undecided hold_tap |
||||||
|
ht_decide: 1 decided hold-timer (hold-preferred decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 1 cleaning up hold-tap |
@ -0,0 +1,20 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* hold the first mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
/* hold the second mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,1,400) |
||||||
|
/* press the normal key */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
|
||||||
|
/* release the hold taps */ |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,29 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
behaviors { |
||||||
|
hp: behavior_hold_preferred { |
||||||
|
compatible = "zmk,behavior-hold-tap"; |
||||||
|
label = "MOD_TAP"; |
||||||
|
#binding-cells = <2>; |
||||||
|
flavor = "hold-preferred"; |
||||||
|
tapping-term-ms = <300>; |
||||||
|
quick-tap-ms = <300>; |
||||||
|
bindings = <&kp>, <&kp>; |
||||||
|
global-quick-tap; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
keymap { |
||||||
|
compatible = "zmk,keymap"; |
||||||
|
label ="Default keymap"; |
||||||
|
|
||||||
|
default_layer { |
||||||
|
bindings = < |
||||||
|
&hp LEFT_SHIFT F &hp LEFT_CONTROL G |
||||||
|
&kp D &none>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,24 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-preferred decision moment key-up) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-preferred decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-timer (tap-preferred decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-preferred decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
@ -0,0 +1,25 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
/* normal quick tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* hold */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* global quick tap */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,12 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided hold-timer (tap-preferred decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 1 new undecided hold_tap |
||||||
|
ht_decide: 1 decided hold-timer (tap-preferred decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0xe1 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 1 cleaning up hold-tap |
@ -0,0 +1,20 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* hold the first mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
/* hold the second mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,1,400) |
||||||
|
/* press the normal key */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
|
||||||
|
/* release the hold taps */ |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,29 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
behaviors { |
||||||
|
tp: behavior_tap_preferred { |
||||||
|
compatible = "zmk,behavior-hold-tap"; |
||||||
|
label = "MOD_TAP"; |
||||||
|
#binding-cells = <2>; |
||||||
|
flavor = "tap-preferred"; |
||||||
|
tapping-term-ms = <300>; |
||||||
|
quick-tap-ms = <300>; |
||||||
|
bindings = <&kp>, <&kp>; |
||||||
|
global-quick-tap; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
keymap { |
||||||
|
compatible = "zmk,keymap"; |
||||||
|
label ="Default keymap"; |
||||||
|
|
||||||
|
default_layer { |
||||||
|
bindings = < |
||||||
|
&tp LEFT_SHIFT F &tp LEFT_CONTROL C |
||||||
|
&kp D &none>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,24 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-unless-interrupted decision moment key-up) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-unless-interrupted decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-unless-interrupted decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-unless-interrupted decision moment quick-tap) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
@ -0,0 +1,25 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
/* normal quick tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* hold */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,400) |
||||||
|
/* global quick tap */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,6 @@ |
|||||||
|
s/.*hid_listener_keycode/kp/p |
||||||
|
s/.*mo_keymap_binding/mo/p |
||||||
|
s/.*on_hold_tap_binding/ht_binding/p |
||||||
|
s/.*decide_hold_tap/ht_decide/p |
||||||
|
s/.*update_hold_status_for_retro_tap/update_hold_status_for_retro_tap/p |
||||||
|
s/.*decide_retro_tap/decide_retro_tap/p |
@ -0,0 +1,12 @@ |
|||||||
|
ht_binding_pressed: 0 new undecided hold_tap |
||||||
|
ht_decide: 0 decided tap (tap-unless-interrupted decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_pressed: 1 new undecided hold_tap |
||||||
|
ht_decide: 1 decided tap (tap-unless-interrupted decision moment timer) |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x0d implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
kp_released: usage_page 0x07 keycode 0x09 implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 0 cleaning up hold-tap |
||||||
|
kp_released: usage_page 0x07 keycode 0x0d implicit_mods 0x00 explicit_mods 0x00 |
||||||
|
ht_binding_released: 1 cleaning up hold-tap |
@ -0,0 +1,20 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
#include "../behavior_keymap.dtsi" |
||||||
|
|
||||||
|
&kscan { |
||||||
|
events = < |
||||||
|
/* hold the first mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,0,400) |
||||||
|
/* hold the second mod tap */ |
||||||
|
ZMK_MOCK_PRESS(0,1,400) |
||||||
|
/* press the normal key */ |
||||||
|
ZMK_MOCK_PRESS(1,0,10) |
||||||
|
ZMK_MOCK_RELEASE(1,0,10) |
||||||
|
|
||||||
|
/* release the hold taps */ |
||||||
|
ZMK_MOCK_RELEASE(0,0,10) |
||||||
|
ZMK_MOCK_RELEASE(0,1,10) |
||||||
|
>; |
||||||
|
}; |
@ -0,0 +1,29 @@ |
|||||||
|
#include <dt-bindings/zmk/keys.h> |
||||||
|
#include <behaviors.dtsi> |
||||||
|
#include <dt-bindings/zmk/kscan_mock.h> |
||||||
|
|
||||||
|
/ { |
||||||
|
behaviors { |
||||||
|
ht_tui: behavior_hold_tap_tap_unless_interrupted { |
||||||
|
compatible = "zmk,behavior-hold-tap"; |
||||||
|
label = "hold_tap_tap_unless_interrupted"; |
||||||
|
#binding-cells = <2>; |
||||||
|
flavor = "tap-unless-interrupted"; |
||||||
|
tapping-term-ms = <300>; |
||||||
|
quick-tap-ms = <300>; |
||||||
|
bindings = <&kp>, <&kp>; |
||||||
|
global-quick-tap; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
keymap { |
||||||
|
compatible = "zmk,keymap"; |
||||||
|
label ="Default keymap"; |
||||||
|
|
||||||
|
default_layer { |
||||||
|
bindings = < |
||||||
|
&ht_tui LEFT_SHIFT F &ht_tui LEFT_CONTROL J |
||||||
|
&kp D &kp RIGHT_CONTROL>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
Loading…
Reference in new issue