format
This commit is contained in:
parent
3be50897c7
commit
f268b313a8
3 changed files with 56 additions and 57 deletions
|
@ -7,58 +7,58 @@
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
behaviors {
|
behaviors {
|
||||||
/omit-if-no-ref/ capslock_on: behavior_capslock_on {
|
/omit-if-no-ref/ capslock_on: behavior_capslock_on {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_ON";
|
label = "CAPSLOCK_ON";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <5>;
|
capslock-press-duration = <5>;
|
||||||
enable-on-press;
|
enable-on-press;
|
||||||
};
|
};
|
||||||
|
|
||||||
/omit-if-no-ref/ capslock_off: behavior_capslock_off {
|
/omit-if-no-ref/ capslock_off: behavior_capslock_off {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_OFF";
|
label = "CAPSLOCK_OFF";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <5>;
|
capslock-press-duration = <5>;
|
||||||
disable-on-release;
|
disable-on-release;
|
||||||
};
|
};
|
||||||
|
|
||||||
/omit-if-no-ref/ capslock_hold: behavior_capslock_hold {
|
/omit-if-no-ref/ capslock_hold: behavior_capslock_hold {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_HOLD";
|
label = "CAPSLOCK_HOLD";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <5>;
|
capslock-press-duration = <5>;
|
||||||
enable-on-press;
|
enable-on-press;
|
||||||
disable-on-release;
|
disable-on-release;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* MacOS compatibility */
|
/* MacOS compatibility */
|
||||||
|
|
||||||
/omit-if-no-ref/ capslock_on_mac: behavior_capslock_on_mac {
|
/omit-if-no-ref/ capslock_on_mac: behavior_capslock_on_mac {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_ON_MAC";
|
label = "CAPSLOCK_ON_MAC";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <95>;
|
capslock-press-duration = <95>;
|
||||||
enable-on-press;
|
enable-on-press;
|
||||||
};
|
};
|
||||||
|
|
||||||
/omit-if-no-ref/ capslock_off_mac: behavior_capslock_off_mac {
|
/omit-if-no-ref/ capslock_off_mac: behavior_capslock_off_mac {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_OFF_MAC";
|
label = "CAPSLOCK_OFF_MAC";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <95>;
|
capslock-press-duration = <95>;
|
||||||
disable-on-release;
|
disable-on-release;
|
||||||
};
|
};
|
||||||
|
|
||||||
/omit-if-no-ref/ capslock_hold_mac: behavior_capslock_hold_mac {
|
/omit-if-no-ref/ capslock_hold_mac: behavior_capslock_hold_mac {
|
||||||
compatible = "zmk,behavior-capslock";
|
compatible = "zmk,behavior-capslock";
|
||||||
label = "CAPSLOCK_HOLD_MAC";
|
label = "CAPSLOCK_HOLD_MAC";
|
||||||
#binding-cells = <0>;
|
#binding-cells = <0>;
|
||||||
capslock-press-duration = <95>;
|
capslock-press-duration = <95>;
|
||||||
enable-on-press;
|
enable-on-press;
|
||||||
disable-on-release;
|
disable-on-release;
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,4 +28,3 @@ properties:
|
||||||
capslock-press-duration:
|
capslock-press-duration:
|
||||||
type: int
|
type: int
|
||||||
default: 95 # seems to be the shortest reliable delay on Mac
|
default: 95 # seems to be the shortest reliable delay on Mac
|
||||||
|
|
||||||
|
|
|
@ -58,4 +58,4 @@ capslock_word: behavior_capslock_word {
|
||||||
disable-on-next-release;
|
disable-on-next-release;
|
||||||
enable-while-keys = <A B C ... Z ...>;
|
enable-while-keys = <A B C ... Z ...>;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue