forked from kofal.net/zmk
refactor: Replace tabs with spaces
Standardized indentation to use spaces with a new pre-commit hook.
This commit is contained in:
committed by
Pete Johanson
parent
32ae776c42
commit
94061bb916
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ bl: behavior_backlight {
|
||||
compatible = "zmk,behavior-backlight";
|
||||
label = "BCKLGHT";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ bl: behavior_backlight {
|
||||
compatible = "zmk,behavior-backlight";
|
||||
label = "BCKLGHT";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ bt: behavior_bluetooth {
|
||||
compatible = "zmk,behavior-bluetooth";
|
||||
label = "BLUETOOTH";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ bt: behavior_bluetooth {
|
||||
compatible = "zmk,behavior-bluetooth";
|
||||
label = "BLUETOOTH";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ caps_word: behavior_caps_word {
|
||||
compatible = "zmk,behavior-caps-word";
|
||||
label = "CAPS_WORD";
|
||||
#binding-cells = <0>;
|
||||
continue-list = <UNDERSCORE BACKSPACE DELETE>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ caps_word: behavior_caps_word {
|
||||
compatible = "zmk,behavior-caps-word";
|
||||
label = "CAPS_WORD";
|
||||
#binding-cells = <0>;
|
||||
continue-list = <UNDERSCORE BACKSPACE DELETE>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
ext_power: behavior_ext_power {
|
||||
compatible = "zmk,behavior-ext-power";
|
||||
label = "EXTPOWER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
ext_power: behavior_ext_power {
|
||||
compatible = "zmk,behavior-ext-power";
|
||||
label = "EXTPOWER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ gresc: grave_escape {
|
||||
compatible = "zmk,behavior-mod-morph";
|
||||
label = "GRAVE_ESCAPE";
|
||||
#binding-cells = <0>;
|
||||
bindings = <&kp ESC>, <&kp GRAVE>;
|
||||
behaviors {
|
||||
/omit-if-no-ref/ gresc: grave_escape {
|
||||
compatible = "zmk,behavior-mod-morph";
|
||||
label = "GRAVE_ESCAPE";
|
||||
#binding-cells = <0>;
|
||||
bindings = <&kp ESC>, <&kp GRAVE>;
|
||||
mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/* DEPRECATED: `cp` will be removed in the future */
|
||||
/omit-if-no-ref/ cp: kp: behavior_key_press {
|
||||
compatible = "zmk,behavior-key-press";
|
||||
label = "KEY_PRESS";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/* DEPRECATED: `cp` will be removed in the future */
|
||||
/omit-if-no-ref/ cp: kp: behavior_key_press {
|
||||
compatible = "zmk,behavior-key-press";
|
||||
label = "KEY_PRESS";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ key_repeat: behavior_key_repeat {
|
||||
compatible = "zmk,behavior-key-repeat";
|
||||
label = "KEY_REPEAT";
|
||||
#binding-cells = <0>;
|
||||
usage-pages = <HID_USAGE_KEY>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ key_repeat: behavior_key_repeat {
|
||||
compatible = "zmk,behavior-key-repeat";
|
||||
label = "KEY_REPEAT";
|
||||
#binding-cells = <0>;
|
||||
usage-pages = <HID_USAGE_KEY>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ kt: behavior_key_toggle {
|
||||
compatible = "zmk,behavior-key-toggle";
|
||||
label = "KEY_TOGGLE";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ kt: behavior_key_toggle {
|
||||
compatible = "zmk,behavior-key-toggle";
|
||||
label = "KEY_TOGGLE";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ lt: behavior_layer_tap {
|
||||
compatible = "zmk,behavior-hold-tap";
|
||||
label = "LAYER_TAP";
|
||||
#binding-cells = <2>;
|
||||
flavor = "tap-preferred";
|
||||
tapping-term-ms = <200>;
|
||||
bindings = <&mo>, <&kp>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ lt: behavior_layer_tap {
|
||||
compatible = "zmk,behavior-hold-tap";
|
||||
label = "LAYER_TAP";
|
||||
#binding-cells = <2>;
|
||||
flavor = "tap-preferred";
|
||||
tapping-term-ms = <200>;
|
||||
bindings = <&mo>, <&kp>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -6,49 +6,49 @@
|
||||
|
||||
#define ZMK_MACRO_STRINGIFY(x) #x
|
||||
#define ZMK_MACRO(name,...) \
|
||||
name: name { \
|
||||
label = ZMK_MACRO_STRINGIFY(ZM_ ## name); \
|
||||
compatible = "zmk,behavior-macro"; \
|
||||
#binding-cells = <0>; \
|
||||
__VA_ARGS__ \
|
||||
};
|
||||
name: name { \
|
||||
label = ZMK_MACRO_STRINGIFY(ZM_ ## name); \
|
||||
compatible = "zmk,behavior-macro"; \
|
||||
#binding-cells = <0>; \
|
||||
__VA_ARGS__ \
|
||||
};
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
macro_tap: macro_control_mode_tap {
|
||||
compatible = "zmk,macro-control-mode-tap";
|
||||
label = "MAC_TAP";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
behaviors {
|
||||
macro_tap: macro_control_mode_tap {
|
||||
compatible = "zmk,macro-control-mode-tap";
|
||||
label = "MAC_TAP";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
macro_press: macro_control_mode_press {
|
||||
compatible = "zmk,macro-control-mode-press";
|
||||
label = "MAC_PRESS";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
macro_press: macro_control_mode_press {
|
||||
compatible = "zmk,macro-control-mode-press";
|
||||
label = "MAC_PRESS";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
macro_release: macro_control_mode_release {
|
||||
compatible = "zmk,macro-control-mode-release";
|
||||
label = "MAC_REL";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
macro_release: macro_control_mode_release {
|
||||
compatible = "zmk,macro-control-mode-release";
|
||||
label = "MAC_REL";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
macro_tap_time: macro_control_tap_time {
|
||||
compatible = "zmk,macro-control-tap-time";
|
||||
label = "MAC_TAP_TIME";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
macro_tap_time: macro_control_tap_time {
|
||||
compatible = "zmk,macro-control-tap-time";
|
||||
label = "MAC_TAP_TIME";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
|
||||
macro_wait_time: macro_control_wait_time {
|
||||
compatible = "zmk,macro-control-wait-time";
|
||||
label = "MAC_WAIT_TIME";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
macro_wait_time: macro_control_wait_time {
|
||||
compatible = "zmk,macro-control-wait-time";
|
||||
label = "MAC_WAIT_TIME";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
|
||||
macro_pause_for_release: macro_pause_for_release {
|
||||
compatible = "zmk,macro-pause-for-release";
|
||||
label = "MAC_WAIT_REL";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
macro_pause_for_release: macro_pause_for_release {
|
||||
compatible = "zmk,macro-pause-for-release";
|
||||
label = "MAC_WAIT_REL";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ mt: behavior_mod_tap {
|
||||
compatible = "zmk,behavior-hold-tap";
|
||||
label = "MOD_TAP";
|
||||
#binding-cells = <2>;
|
||||
flavor = "hold-preferred";
|
||||
tapping-term-ms = <200>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ mt: behavior_mod_tap {
|
||||
compatible = "zmk,behavior-hold-tap";
|
||||
label = "MOD_TAP";
|
||||
#binding-cells = <2>;
|
||||
flavor = "hold-preferred";
|
||||
tapping-term-ms = <200>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ mo: behavior_momentary_layer {
|
||||
compatible = "zmk,behavior-momentary-layer";
|
||||
label = "MO";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ mo: behavior_momentary_layer {
|
||||
compatible = "zmk,behavior-momentary-layer";
|
||||
label = "MO";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ none: behavior_none {
|
||||
compatible = "zmk,behavior-none";
|
||||
label = "NONE";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ none: behavior_none {
|
||||
compatible = "zmk,behavior-none";
|
||||
label = "NONE";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,18 +7,18 @@
|
||||
#include <dt-bindings/zmk/reset.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
sys_reset: behavior_reset {
|
||||
compatible = "zmk,behavior-reset";
|
||||
label = "SYSRESET";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
behaviors {
|
||||
sys_reset: behavior_reset {
|
||||
compatible = "zmk,behavior-reset";
|
||||
label = "SYSRESET";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
|
||||
bootloader: behavior_reset_dfu {
|
||||
compatible = "zmk,behavior-reset";
|
||||
label = "BOOTLOAD";
|
||||
type = <RST_UF2>;
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
bootloader: behavior_reset_dfu {
|
||||
compatible = "zmk,behavior-reset";
|
||||
label = "BOOTLOAD";
|
||||
type = <RST_UF2>;
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
rgb_ug: behavior_rgb_underglow {
|
||||
compatible = "zmk,behavior-rgb-underglow";
|
||||
label = "RGB_UG";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
rgb_ug: behavior_rgb_underglow {
|
||||
compatible = "zmk,behavior-rgb-underglow";
|
||||
label = "RGB_UG";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/* DEPRECATED: `inc_dec_cp` will be removed in the future */
|
||||
/omit-if-no-ref/ inc_dec_cp: inc_dec_kp: behavior_sensor_rotate_key_press {
|
||||
compatible = "zmk,behavior-sensor-rotate-var";
|
||||
label = "ENC_KEY_PRESS";
|
||||
#sensor-binding-cells = <2>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/* DEPRECATED: `inc_dec_cp` will be removed in the future */
|
||||
/omit-if-no-ref/ inc_dec_cp: inc_dec_kp: behavior_sensor_rotate_key_press {
|
||||
compatible = "zmk,behavior-sensor-rotate-var";
|
||||
label = "ENC_KEY_PRESS";
|
||||
#sensor-binding-cells = <2>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,24 +5,24 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ sk: behavior_sticky_key {
|
||||
compatible = "zmk,behavior-sticky-key";
|
||||
label = "STICKY_KEY";
|
||||
#binding-cells = <1>;
|
||||
release-after-ms = <1000>;
|
||||
bindings = <&kp>;
|
||||
ignore-modifiers;
|
||||
};
|
||||
/omit-if-no-ref/ sl: behavior_sticky_layer {
|
||||
compatible = "zmk,behavior-sticky-key";
|
||||
label = "STICKY_LAYER";
|
||||
#binding-cells = <1>;
|
||||
release-after-ms = <1000>;
|
||||
bindings = <&mo>;
|
||||
quick-release;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ sk: behavior_sticky_key {
|
||||
compatible = "zmk,behavior-sticky-key";
|
||||
label = "STICKY_KEY";
|
||||
#binding-cells = <1>;
|
||||
release-after-ms = <1000>;
|
||||
bindings = <&kp>;
|
||||
ignore-modifiers;
|
||||
};
|
||||
/omit-if-no-ref/ sl: behavior_sticky_layer {
|
||||
compatible = "zmk,behavior-sticky-key";
|
||||
label = "STICKY_LAYER";
|
||||
#binding-cells = <1>;
|
||||
release-after-ms = <1000>;
|
||||
bindings = <&mo>;
|
||||
quick-release;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ to: behavior_to_layer {
|
||||
compatible = "zmk,behavior-to-layer";
|
||||
label = "TO_LAYER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ to: behavior_to_layer {
|
||||
compatible = "zmk,behavior-to-layer";
|
||||
label = "TO_LAYER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ tog: behavior_toggle_layer {
|
||||
compatible = "zmk,behavior-toggle-layer";
|
||||
label = "TOGGLE_LAYER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ tog: behavior_toggle_layer {
|
||||
compatible = "zmk,behavior-toggle-layer";
|
||||
label = "TOGGLE_LAYER";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ trans: behavior_transparent {
|
||||
compatible = "zmk,behavior-transparent";
|
||||
label = "TRANS";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
behaviors {
|
||||
/omit-if-no-ref/ trans: behavior_transparent {
|
||||
compatible = "zmk,behavior-transparent";
|
||||
label = "TRANS";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,41 +7,41 @@
|
||||
/* This provies a mapping from Arduino Uno to Arduino Pro Micro pins for development */
|
||||
|
||||
/ {
|
||||
pro_micro_d: connector_d {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &arduino_header 6 0> /* D0 */
|
||||
, <1 0 &arduino_header 7 0> /* D1 */
|
||||
, <2 0 &arduino_header 8 0> /* D2 */
|
||||
, <3 0 &arduino_header 9 0> /* D3 */
|
||||
, <4 0 &arduino_header 10 0> /* D4/A6 */
|
||||
, <5 0 &arduino_header 11 0> /* D5 */
|
||||
, <6 0 &arduino_header 12 0> /* D6/A7 */
|
||||
, <7 0 &arduino_header 13 0> /* D7 */
|
||||
, <8 0 &arduino_header 14 0> /* D8/A8 */
|
||||
, <9 0 &arduino_header 15 0> /* D9/A9 */
|
||||
, <10 0 &arduino_header 16 0> /* D10/A10 */
|
||||
, <16 0 &arduino_header 17 0> /* D16 */
|
||||
, <14 0 &arduino_header 18 0> /* D14 */
|
||||
, <15 0 &arduino_header 19 0> /* D15 */
|
||||
;
|
||||
};
|
||||
pro_micro_d: connector_d {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &arduino_header 6 0> /* D0 */
|
||||
, <1 0 &arduino_header 7 0> /* D1 */
|
||||
, <2 0 &arduino_header 8 0> /* D2 */
|
||||
, <3 0 &arduino_header 9 0> /* D3 */
|
||||
, <4 0 &arduino_header 10 0> /* D4/A6 */
|
||||
, <5 0 &arduino_header 11 0> /* D5 */
|
||||
, <6 0 &arduino_header 12 0> /* D6/A7 */
|
||||
, <7 0 &arduino_header 13 0> /* D7 */
|
||||
, <8 0 &arduino_header 14 0> /* D8/A8 */
|
||||
, <9 0 &arduino_header 15 0> /* D9/A9 */
|
||||
, <10 0 &arduino_header 16 0> /* D10/A10 */
|
||||
, <16 0 &arduino_header 17 0> /* D16 */
|
||||
, <14 0 &arduino_header 18 0> /* D14 */
|
||||
, <15 0 &arduino_header 19 0> /* D15 */
|
||||
;
|
||||
};
|
||||
|
||||
pro_micro_a: connector_a {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &arduino_header 0 0> /* A0 */
|
||||
, <1 0 &arduino_header 1 0> /* A1 */
|
||||
, <2 0 &arduino_header 2 0> /* A2 */
|
||||
, <3 0 &arduino_header 3 0> /* A3 */
|
||||
;
|
||||
};
|
||||
pro_micro_a: connector_a {
|
||||
compatible = "arduino-pro-micro";
|
||||
#gpio-cells = <2>;
|
||||
gpio-map-mask = <0xffffffff 0xffffffc0>;
|
||||
gpio-map-pass-thru = <0 0x3f>;
|
||||
gpio-map
|
||||
= <0 0 &arduino_header 0 0> /* A0 */
|
||||
, <1 0 &arduino_header 1 0> /* A1 */
|
||||
, <2 0 &arduino_header 2 0> /* A2 */
|
||||
, <3 0 &arduino_header 3 0> /* A3 */
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
pro_micro_i2c: &arduino_i2c {};
|
||||
|
||||
Reference in New Issue
Block a user