cleanup
This commit is contained in:
parent
3642c0555b
commit
254776be53
3 changed files with 48 additions and 46 deletions
|
|
@ -3,58 +3,13 @@
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <behaviors.dtsi>
|
#include "general.dtsi"
|
||||||
#include <dt-bindings/zmk/keys.h>
|
|
||||||
#include <dt-bindings/zmk/bt.h>
|
|
||||||
|
|
||||||
|
|
||||||
/* Layers */
|
|
||||||
#define DEF_L 0
|
|
||||||
#define NAV_L 1
|
|
||||||
#define UPP_L 2
|
|
||||||
#define SYM_L 3
|
|
||||||
#define NUM_L 4
|
|
||||||
|
|
||||||
/* Behavior Settings */
|
|
||||||
&caps_word {
|
|
||||||
continue-list = <UNDERSCORE MINUS BACKSPACE>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&sk {
|
|
||||||
release-after-ms = <60000>;
|
|
||||||
};
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
|
||||||
#include "macros.dtsi"
|
#include "macros.dtsi"
|
||||||
|
|
||||||
ZMK_MACRO(mo_nav,
|
|
||||||
wait-ms = <0>;
|
|
||||||
tap-ms = <0>;
|
|
||||||
bindings
|
|
||||||
= <¯o_tap &kp K_CANCEL>
|
|
||||||
, <¯o_press &mo NAV_L>
|
|
||||||
, <¯o_pause_for_release>
|
|
||||||
, <¯o_release &mo NAV_L>;)
|
|
||||||
|
|
||||||
ZMK_MACRO(mo_upp,
|
|
||||||
wait-ms = <0>;
|
|
||||||
tap-ms = <0>;
|
|
||||||
bindings
|
|
||||||
= <¯o_tap &kp K_CANCEL>
|
|
||||||
, <¯o_press &mo UPP_L>
|
|
||||||
, <¯o_pause_for_release>
|
|
||||||
, <¯o_release &mo UPP_L>;)
|
|
||||||
|
|
||||||
ZMK_MACRO(mo_sym,
|
|
||||||
wait-ms = <0>;
|
|
||||||
tap-ms = <0>;
|
|
||||||
bindings
|
|
||||||
= <¯o_tap &kp K_CANCEL>
|
|
||||||
, <¯o_press &mo SYM_L>
|
|
||||||
, <¯o_pause_for_release>
|
|
||||||
, <¯o_release &mo SYM_L>;)
|
|
||||||
|
|
||||||
combos {
|
combos {
|
||||||
compatible = "zmk,combos";
|
compatible = "zmk,combos";
|
||||||
|
|
||||||
|
|
|
||||||
20
config/general.dtsi
Normal file
20
config/general.dtsi
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* Layers */
|
||||||
|
#define DEF_L 0
|
||||||
|
#define NAV_L 1
|
||||||
|
#define UPP_L 2
|
||||||
|
#define SYM_L 3
|
||||||
|
#define NUM_L 4
|
||||||
|
|
||||||
|
/* Behavior Settings */
|
||||||
|
&caps_word {
|
||||||
|
continue-list = <UNDERSCORE MINUS BACKSPACE>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&sk {
|
||||||
|
release-after-ms = <60000>;
|
||||||
|
};
|
||||||
|
|
@ -1,3 +1,30 @@
|
||||||
|
ZMK_MACRO(mo_nav,
|
||||||
|
wait-ms = <0>;
|
||||||
|
tap-ms = <0>;
|
||||||
|
bindings
|
||||||
|
= <¯o_tap &kp K_CANCEL>
|
||||||
|
, <¯o_press &mo NAV_L>
|
||||||
|
, <¯o_pause_for_release>
|
||||||
|
, <¯o_release &mo NAV_L>;)
|
||||||
|
|
||||||
|
ZMK_MACRO(mo_upp,
|
||||||
|
wait-ms = <0>;
|
||||||
|
tap-ms = <0>;
|
||||||
|
bindings
|
||||||
|
= <¯o_tap &kp K_CANCEL>
|
||||||
|
, <¯o_press &mo UPP_L>
|
||||||
|
, <¯o_pause_for_release>
|
||||||
|
, <¯o_release &mo UPP_L>;)
|
||||||
|
|
||||||
|
ZMK_MACRO(mo_sym,
|
||||||
|
wait-ms = <0>;
|
||||||
|
tap-ms = <0>;
|
||||||
|
bindings
|
||||||
|
= <¯o_tap &kp K_CANCEL>
|
||||||
|
, <¯o_press &mo SYM_L>
|
||||||
|
, <¯o_pause_for_release>
|
||||||
|
, <¯o_release &mo SYM_L>;)
|
||||||
|
|
||||||
ZMK_MACRO(leq,
|
ZMK_MACRO(leq,
|
||||||
wait-ms = <30>;
|
wait-ms = <30>;
|
||||||
tap-ms = <40>;
|
tap-ms = <40>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue