diff --git a/config/boards/arm/hw75_dynamic/app/screen/icons.csv b/config/boards/arm/hw75_dynamic/app/screen/icons.csv index 6feda767..2bbf1ccf 100644 --- a/config/boards/arm/hw75_dynamic/app/screen/icons.csv +++ b/config/boards/arm/hw75_dynamic/app/screen/icons.csv @@ -1,5 +1,6 @@ ICON_VOL,f1ae ICON_SCR,f18a +ICON_TASKS,f15e ICON_ARROW_VER,f193 ICON_ARROW_HOR,f19c ICON_CALI,f183 diff --git a/config/boards/arm/hw75_dynamic/app/screen/strings.csv b/config/boards/arm/hw75_dynamic/app/screen/strings.csv index 003a8345..862a16b5 100644 --- a/config/boards/arm/hw75_dynamic/app/screen/strings.csv +++ b/config/boards/arm/hw75_dynamic/app/screen/strings.csv @@ -1,5 +1,6 @@ STRING_LAYER_VOL,音量 STRING_LAYER_SCR,滚动 +STRING_LAYER_TASKS,窗口 STRING_LAYER_ARROW_VER,上下 STRING_LAYER_ARROW_HOR,左右 STRING_KNOB_CALIB,电机校准中 diff --git a/config/hw75_dynamic.keymap b/config/hw75_dynamic.keymap index 6297cf49..dc46ffb0 100644 --- a/config/hw75_dynamic.keymap +++ b/config/hw75_dynamic.keymap @@ -12,6 +12,37 @@ #include / { + macros { + tasks_forward: tasks-forward { + label = "TAKS_FORWARD"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings = <¯o_press &kp LALT>, + <¯o_tap &kp TAB>, + <¯o_release &kp LALT>; + }; + + tasks_backward: tasks-backward { + label = "TAKS_BACKWARD"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings = <¯o_press &kp LALT>, + <¯o_press &kp LSHIFT>, + <¯o_tap &kp TAB>, + <¯o_release &kp LSHIFT>, + <¯o_release &kp LALT>; + }; + }; + + behaviors { + switch_tasks: switch-tasks { + compatible = "zmk,behavior-sensor-rotate"; + label = "SWITCH_TASKS"; + #sensor-binding-cells = <0>; + bindings = <&tasks_forward>, <&tasks_backward>; + }; + }; + keymap { compatible = "zmk,keymap-ext", "zmk,keymap"; @@ -29,6 +60,14 @@ sensor-bindings = <&mw MW_UP(1) MW_DN(1)>; }; + tasks { + label = "窗口"; + icon = [EF 85 9E]; + bindings = <&trans &trans>; + sensor-bindings = <&switch_tasks>; + profile = <&profile_spring>; + }; + arrow_vertical { label = "上下"; icon = [EF 86 93];