diff --git a/config/adv360.keymap b/config/adv360.keymap index cf80f15e8e..47a88ccee4 100644 --- a/config/adv360.keymap +++ b/config/adv360.keymap @@ -1,3 +1,17 @@ + +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + + +/* THIS FILE WAS GENERATED! + * + * This file was generated automatically. You may or may not want to + * edit it directly. + */ + #include #include #include @@ -5,67 +19,84 @@ #include / { - behaviors { - #include "macros.dtsi" - #include "version.dtsi" - #ifndef VERSION_MACRO - macro_ver: macro_ver { - compatible = "zmk,behavior-macro"; - label = "macro_version"; - #binding-cells = <0>; - bindings = <&kp RET>; - }; - #endif + behaviors { + #include "macros.dtsi" + #include "version.dtsi" - hm: homerow_mods { - compatible = "zmk,behavior-hold-tap"; - label = "HOMEROW_MODS"; - #binding-cells = <2>; - tapping-term-ms = <200>; - quick_tap_ms = <175>; - flavor = "tap-preferred"; - bindings = <&kp>, <&kp>; - }; + hm: homerow_mods { + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_MODS"; + #binding-cells = <2>; + tapping-term-ms = <200>; + quick_tap_ms = <175>; + flavor = "tap-preferred"; + bindings = <&kp>, <&kp>; }; + }; - keymap { - compatible = "zmk,keymap"; + keymap { + compatible = "zmk,keymap"; + + + default_layer { + bindings = < + &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &none &mo 2 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS + &kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH + &kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCMD &kp LALT &kp LGUI &kp RCTRL &none &kp H &kp J &kp K &kp L &kp SEMI &kp SQT + &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT + &kp LCTRL < 5 GRAVE &kp LCTRL &kp LALT &kp LCMD < 3 SPACE < 4 DELETE &kp END &kp PG_DN &kp ENTER &kp BACKSPACE &kp LEFT &kp RIGHT &kp LBKT &kp RBKT &mo 3 + >; + }; + + layer_fn { + bindings = < + &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &trans &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &kp CAPS &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + >; + }; + + layer_mod { + bindings = < + &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none + &none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none + &none &none &none &none &none &none &none &none &none &none &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none + &none &none &none &none &none &none &none &none &none &none &none &none &none &none + &none &none &none &bl BL_INC &bl BL_DEC &bl BL_TOG &bt BT_CLR &none &none &rgb_ug RGB_TOG &none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none + >; + }; + + layer_Arrows { + bindings = < + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp UP &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + >; + }; + + layer_Words { + bindings = < + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans ¯o_goto_line_start &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans ¯o_prev_word ¯o_goto_line_end ¯o_next_word &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &caps_word &trans &trans &trans &trans &trans &trans &trans ¯o_del_word &trans &trans &trans &trans &trans + >; + }; + + layer_Media { + bindings = < + &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_PLAY_PAUSE &kp C_NEXT &kp C_VOLUME_DOWN &kp C_VOLUME_UP + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + >; + }; - default_layer { - bindings = < - &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 1 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS - &kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH - &kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &kp H &kp J &kp K &kp L &kp SEMI &kp SQT - &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT - &mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp END &kp PG_DN &kp ENTER &kp SPACE &kp UP &kp DOWN &kp LBKT &kp RBKT &mo 2 - >; - }; - keypad { - bindings = < - &kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &mo 3 &kp N6 &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &kp MINUS - &kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &kp BSLH - &kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &kp H &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &kp SQT - &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER &kp RSHFT - &mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp END &kp PG_DN &kp ENTER &kp KP_N0 &kp UP &kp DOWN &kp KP_DOT &kp RBKT &mo 2 - >; - }; - fn { - bindings = < - &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &tog 1 &mo 3 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 - &trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - >; - }; - mod { - bindings = < - &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none - &none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none - &none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none - &none &none &none &none ¯o_ver &none &none &none &none &none &none &none &none &none - &none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none - >; }; - }; -}; +}; \ No newline at end of file diff --git a/config/boards/arm/adv360/adv360_left_defconfig b/config/boards/arm/adv360/adv360_left_defconfig index b37679a4d3..27a1e77abc 100644 --- a/config/boards/arm/adv360/adv360_left_defconfig +++ b/config/boards/arm/adv360/adv360_left_defconfig @@ -36,6 +36,7 @@ CONFIG_WS2812_STRIP=y CONFIG_ZMK_RGB_UNDERGLOW=y CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=y CONFIG_ZMK_RGB_UNDERGLOW_ON_START=y +CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=50 CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=4 CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y @@ -55,19 +56,26 @@ CONFIG_BT_DIS_MANUF="Kinesis Corporation" #CONFIG_BT_PERIPHERAL_PREF_MIN_INT=12 #CONFIG_BT_PERIPHERAL_PREF_MAX_INT=24 #CONFIG_BT_PERIPHERAL_PREF_LATENCY=30 -CONFIG_BT_BAS=n #Set this to y to enable BLE battery reporting +CONFIG_BT_BAS=y #Set this to y to enable BLE battery reporting +CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=y + +#Power configuration +CONFIG_ZMK_IDLE_TIMEOUT=30000 +CONFIG_ZMK_SLEEP=y +CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 #Misc configuration CONFIG_USB_DEVICE_VID=0x29EA CONFIG_USB_DEVICE_PID=0x0362 CONFIG_USB_DEVICE_MANUFACTURER="Kinesis Corporation" CONFIG_ZMK_HID_REPORT_TYPE_NKRO=y -CONFIG_ZMK_HID_KEYBOARD_EXTENDED_REPORT=n #Set this to y for F13-F24 and intl keys with NKRO +CONFIG_ZMK_HID_KEYBOARD_EXTENDED_REPORT=y #Set this to y for F13-F24 and intl keys with NKRO CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y CONFIG_BUILD_OUTPUT_UF2=y -CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y -CONFIG_ZMK_BLE_PASSKEY_ENTRY=n +CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=n +CONFIG_ZMK_BLE_EXPERIMENTAL_SEC=y +CONFIG_ZMK_BLE_PASSKEY_ENTRY=y CONFIG_ZMK_BLE=y CONFIG_ZMK_USB=y diff --git a/config/boards/arm/adv360/adv360_right_defconfig b/config/boards/arm/adv360/adv360_right_defconfig index 3c2e65a3b1..04ab1643fa 100644 --- a/config/boards/arm/adv360/adv360_right_defconfig +++ b/config/boards/arm/adv360/adv360_right_defconfig @@ -34,6 +34,7 @@ CONFIG_CLOCK_CONTROL_NRF_K32SRC_150PPM=y #RGB leds config CONFIG_WS2812_STRIP=y CONFIG_ZMK_RGB_UNDERGLOW=y +CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=50 CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=y CONFIG_ZMK_RGB_UNDERGLOW_ON_START=y CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=4 @@ -46,6 +47,11 @@ CONFIG_ZMK_BACKLIGHT=y CONFIG_ZMK_BACKLIGHT_BRT_START=20 CONFIG_ZMK_BACKLIGHT_AUTO_OFF_IDLE=y +#Power configuration +CONFIG_ZMK_IDLE_TIMEOUT=30000 +CONFIG_ZMK_SLEEP=y +CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 + #Misc configuration CONFIG_USB_DEVICE_VID=0x29EA CONFIG_USB_DEVICE_PID=0x0362 @@ -55,7 +61,7 @@ CONFIG_ZMK_HID_REPORT_TYPE_NKRO=y CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y CONFIG_BUILD_OUTPUT_UF2=y -CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y +CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=n CONFIG_ZMK_BLE=y CONFIG_ZMK_USB=y diff --git a/config/keymap.json b/config/keymap.json index bd3fa917cc..33fdd836ce 100644 --- a/config/keymap.json +++ b/config/keymap.json @@ -1,38 +1,52 @@ { - "keyboard": "adv360", - "keymap": "default", - "layout": "LAYOUT", - "layer_names": [ - "base", - "keypad", - "fn", - "mod" - ], - "layers": [ - [ - "&kp EQUAL ", "&kp N1 ", "&kp N2 ", "&kp N3 ", "&kp N4 ", "&kp N5 ", "&tog 1 ", "&mo 3 ", "&kp N6 ", "&kp N7 ", "&kp N8 ", "&kp N9 ", "&kp N0 ", "&kp MINUS", - "&kp TAB ", "&kp Q ", "&kp W ", "&kp E ", "&kp R ", "&kp T ", "&none ", "&none ", "&kp Y ", "&kp U ", "&kp I ", "&kp O ", "&kp P ", "&kp BSLH", - "&kp ESC ", "&kp A ", "&kp S ", "&kp D ", "&kp F ", "&kp G ", "&none ", "&kp LCTRL ", "&kp LALT ", "&kp LGUI ", "&kp RCTRL", "&none ", "&kp H ", "&kp J ", "&kp K ", "&kp L ", "&kp SEMI ", "&kp SQT", - "&kp LSHFT ", "&kp Z ", "&kp X ", "&kp C ", "&kp V ", "&kp B ", "&kp HOME ", "&kp PG_UP ", "&kp N ", "&kp M ", "&kp COMMA ", "&kp DOT ", "&kp FSLH ", "&kp RSHFT", - "&mo 2 ", "&kp GRAVE ", "&kp CAPS ", "&kp LEFT ", "&kp RIGHT ", "&kp BSPC ", "&kp DEL ", "&kp END ", "&kp PG_DN ", "&kp ENTER ", "&kp SPACE ", "&kp UP ", "&kp DOWN ", "&kp LBKT ", "&kp RBKT ", "&mo 2" - ], [ - "&kp EQUAL ", "&kp N1 ", "&kp N2 ", "&kp N3 ", "&kp N4 ", "&kp N5 ", "&trans ", "&mo 3 ", "&kp N6 ", "&kp KP_NUM ", "&kp KP_EQUAL ", "&kp KP_DIVIDE ", "&kp KP_MULTIPLY ", "&kp MINUS", - "&kp TAB ", "&kp Q ", "&kp W ", "&kp E ", "&kp R ", "&kp T ", "&none ", "&none ", "&kp Y ", "&kp KP_N7 ", "&kp KP_N8 ", "&kp KP_N9 ", "&kp KP_MINUS ", "&kp BSLH", - "&kp ESC ", "&kp A ", "&kp S ", "&kp D ", "&kp F ", "&kp G ", "&none ", "&kp LCTRL ", "&kp LALT ", "&kp LGUI ", "&kp RCTRL ", "&none ", "&kp H ", "&kp KP_N4 ", "&kp KP_N5 ", "&kp KP_N6 ", "&kp KP_PLUS ", "&kp SQT", - "&kp LSHFT ", "&kp Z ", "&kp X ", "&kp C ", "&kp V ", "&kp B ", "&kp HOME ", "&kp PG_UP " , "&kp N ", "&kp KP_N1 ", "&kp KP_N2 ", "&kp KP_N3 ", "&kp KP_ENTER ", "&kp RSHFT", - "&mo 2 ", "&kp GRAVE ", "&kp CAPS ", "&kp LEFT ", "&kp RIGHT ", "&kp BSPC ", "&kp DEL ", "&kp END ", "&kp PG_DN ", "&kp ENTER ", "&kp KP_N0 ", "&kp UP ", "&kp DOWN ", "&kp KP_DOT ", "&kp RBKT ", "&mo 2" - ], [ - "&kp F1 ", "&kp F2 ", "&kp F3 ", "&kp F4 ", "&kp F5 ", "&kp F6 ", "&tog 1 ", "&mo 3 ", "&kp F7 ", "&kp F8 ", "&kp F9 ", "&kp F10 ", "&kp F11 ", "&kp F12", - "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&none ", "&none ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", - "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&none ", "&trans ", "&trans ", "&trans ", "&trans ", "&none ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", - "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", - "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans ", "&trans" - ], [ - "&none ", "&bt BT_SEL 0 ", "&bt BT_SEL 1 ", "&bt BT_SEL 2 ", "&bt BT_SEL 3 ", "&bt BT_SEL 4 ", "&none ", "&trans ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none", - "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&bootloader ", "&bootloader ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none", - "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none", "&none ", "&bt BT_CLR ", "&none ", "&rgb_ug RGB_MEFS_CMD 5 ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none", - "&none ", "&none ", "&none ", "&none ", "¯o_ver ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none ", "&none", - "&none ", "&none ", "&none ", "&none ", "&none ", "&none", "&none", "&none ", "&none ", "&bl BL_TOG ", "&rgb_ug RGB_TOG ", "&bl BL_INC ", "&bl BL_DEC ", "&none ", "&none ", "&none" - ] - ] -} + "keyboard": "adv360", + "keymap": "default", + "layout": "LAYOUT", + "layer_names": [ + "base", + "fn", + "mod", + "Arrows", + "Words", + "Media" + ], + "layers": [ + [ + "&kp EQUAL", "&kp N1", "&kp N2", "&kp N3", "&kp N4", "&kp N5", "&none", "&mo 2", "&kp N6", "&kp N7", "&kp N8", "&kp N9", "&kp N0", "&kp MINUS", + "&kp TAB", "&kp Q", "&kp W", "&kp E", "&kp R", "&kp T", "&none", "&none", "&kp Y", "&kp U", "&kp I", "&kp O", "&kp P", "&kp BSLH", + "&kp ESC", "&kp A", "&kp S", "&kp D", "&kp F", "&kp G", "&none", "&kp LCMD", "&kp LALT", "&kp LGUI", "&kp RCTRL", "&none", "&kp H", "&kp J", "&kp K", "&kp L", "&kp SEMI", "&kp SQT", + "&kp LSHFT", "&kp Z", "&kp X", "&kp C", "&kp V", "&kp B", "&kp HOME", "&kp PG_UP", "&kp N", "&kp M", "&kp COMMA", "&kp DOT", "&kp FSLH", "&kp RSHFT", + "&kp LCTRL", "< 5 GRAVE", "&kp LCTRL", "&kp LALT", "&kp LCMD", "< 3 SPACE", "< 4 DELETE", "&kp END", "&kp PG_DN", "&kp ENTER", "&kp BACKSPACE", "&kp LEFT", "&kp RIGHT", "&kp LBKT", "&kp RBKT", "&mo 3" + ], [ + "&kp F1", "&kp F2", "&kp F3", "&kp F4", "&kp F5", "&kp F6", "&trans", "&trans", "&kp F7", "&kp F8", "&kp F9", "&kp F10", "&kp F11", "&kp F12", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&kp CAPS", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans" + ], [ + "&none", "&bt BT_SEL 0", "&bt BT_SEL 1", "&bt BT_SEL 2", "&bt BT_SEL 3", "&bt BT_SEL 4", "&none", "&trans", "&none", "&none", "&none", "&none", "&none", "&none", + "&none", "&none", "&none", "&none", "&none", "&none", "&bootloader", "&bootloader", "&none", "&none", "&none", "&none", "&none", "&none", + "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&rgb_ug RGB_MEFS_CMD 5", "&none", "&none", "&none", "&none", "&none", "&none", + "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", "&none", + "&none", "&none", "&none", "&bl BL_INC", "&bl BL_DEC", "&bl BL_TOG", "&bt BT_CLR", "&none", "&none", "&rgb_ug RGB_TOG", "&none", "&rgb_ug RGB_BRD", "&rgb_ug RGB_BRI", "&none", "&none", "&none" + ], [ + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&kp UP", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&kp LEFT", "&kp DOWN", "&kp RIGHT", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans" + ], [ + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "¯o_goto_line_start", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "¯o_prev_word", "¯o_goto_line_end", "¯o_next_word", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&caps_word", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "¯o_del_word", "&trans", "&trans", "&trans", "&trans", "&trans" + ], [ + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&kp C_PREV", "&kp C_PLAY_PAUSE", "&kp C_NEXT", "&kp C_VOLUME_DOWN", "&kp C_VOLUME_UP", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", + "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans", "&trans" + ] + ] + } \ No newline at end of file diff --git a/config/macros.dtsi b/config/macros.dtsi index 953577ab2e..d91e64a283 100644 --- a/config/macros.dtsi +++ b/config/macros.dtsi @@ -1,36 +1,88 @@ - macro_quotes: macro_quotes { - compatible = "zmk,behavior-macro"; - label = "macro_quotes"; - #binding-cells = <0>; - bindings = <&kp SQT>, <&kp SQT>, <&kp LEFT>; - }; - macro_dquotes: macro_dquotes { - compatible = "zmk,behavior-macro"; - label = "macro_dquotes"; - #binding-cells = <0>; - bindings = <&kp DQT>, <&kp DQT>, <&kp LEFT>; - }; - macro_braces: macro_braces { - compatible = "zmk,behavior-macro"; - label = "macro_braces"; - #binding-cells = <0>; - bindings = <&kp LBRC>, <&kp RBRC>, <&kp LEFT>; - }; - macro_parens: macro_parens { - compatible = "zmk,behavior-macro"; - label = "macro_parens"; - #binding-cells = <0>; - bindings = <&kp LPAR>, <&kp RPAR>, <&kp LEFT>; - }; - macro_brackets: macro_brackets { - compatible = "zmk,behavior-macro"; - label = "macro_brackets"; - #binding-cells = <0>; - bindings = <&kp LBKT>, <&kp RBKT>, <&kp LEFT>; - }; - macro_kinesis: macro_kinesis { - compatible = "zmk,behavior-macro"; - label = "macro_kinesis"; - #binding-cells = <0>; - bindings = <&kp LS(K)>, <&kp I>, <&kp N>, <&kp E>, <&kp S>, <&kp I>, <&kp S>; - }; +macro_goto_line_end: macro_goto_line_end{ +compatible = "zmk,behavior-macro"; +label = "macro_goto_line_end"; +tap-ms = <5>; +wait-ms = <0>; +#binding-cells = <0>; +bindings = <¯o_press &kp LCTRL>, <¯o_tap &kp E>, <¯o_release &kp LCTRL>; +}; +macro_goto_line_start: macro_goto_line_start{ +compatible = "zmk,behavior-macro"; +label = "macro_goto_line_start"; +tap-ms = <5>; +wait-ms = <0>; +#binding-cells = <0>; +bindings = <¯o_press &kp LCTRL>, <¯o_tap &kp A>, <¯o_release &kp LCTRL>; +}; +macro_del_word: macro_del_word{ +compatible = "zmk,behavior-macro"; +label = "macro_del_word"; +tap-ms = <5>; +wait-ms = <0>; +#binding-cells = <0>; +bindings = <¯o_press &kp LEFT_ALT>, <¯o_tap &kp BACKSPACE>, <¯o_release &kp LEFT_ALT>; +}; +macro_prev_word: macro_prev_word{ +compatible = "zmk,behavior-macro"; +label = "macro_prev_word"; +tap-ms = <5>; +wait-ms = <0>; +#binding-cells = <0>; +bindings = <¯o_press &kp LEFT_ALT>, <¯o_tap &kp LEFT_ARROW>, <¯o_release &kp LEFT_ALT>; +}; +macro_next_word: macro_next_word{ +compatible = "zmk,behavior-macro"; +label = "macro_next_word"; +tap-ms = <5>; +wait-ms = <0>; +#binding-cells = <0>; +bindings = <¯o_press &kp LEFT_ALT>, <¯o_tap &kp RIGHT_ARROW>, <¯o_release &kp LEFT_ALT>; +}; +macro_angle_brackets: macro_angle_brackets{ +compatible = "zmk,behavior-macro"; +label = "macro_angle_brackets"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp LESS_THAN>, <&kp GREATER_THAN>, <&kp LEFT_ARROW>; +}; +macro_quotes: macro_quotes{ +compatible = "zmk,behavior-macro"; +label = "macro_quotes"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp SQT>, <&kp SQT>, <&kp LEFT>; +}; +macro_dquotes: macro_dquotes{ +compatible = "zmk,behavior-macro"; +label = "macro_dquotes"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp DOUBLE_QUOTES>, <&kp DOUBLE_QUOTES>, <&kp LEFT_ARROW>; +}; +macro_parens: macro_parens{ +compatible = "zmk,behavior-macro"; +label = "macro_parens"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp LPAR>, <&kp RPAR>, <&kp LEFT>; +}; +macro_brackets: macro_brackets{ +compatible = "zmk,behavior-macro"; +label = "macro_brackets"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp LBKT>, <&kp RBKT>, <&kp LEFT>; +}; +macro_braces: macro_braces{ +compatible = "zmk,behavior-macro"; +label = "macro_braces"; +#binding-cells = <0>; +tap-ms = <5>; +wait-ms = <5>; +bindings = <&kp LBRC>, <&kp RBRC>, <&kp LEFT>; +}; \ No newline at end of file