Skip to content

Commit

Permalink
Modifiers and scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Promytheos committed Dec 18, 2024
1 parent 093caa5 commit a3710c9
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion boards/shields/vortex_corne/vortex_corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: MIT
*/

#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500

#include <behaviors.dtsi>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>
Expand Down Expand Up @@ -33,6 +35,40 @@
mods = <(MOD_LSFT|MOD_RSFT)>;
keep-mods = <(MOD_RSFT)>;
};

&mmv {
compatible = "zmk,behavior-input-two-axis";
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
time-to-max-speed-ms = <300>;
acceleration-exponent = <2>;
};

mv_scrl_left: move_scroll_left {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&mmv MOVE_LEFT>, <&msc SCRL_LEFT>;
mods = <(MOD_LSFT|MOD_LCTL|MOD_LALT|MOD_LGUI)>;
};

mv_scrl_down: move_scroll_down {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&mmv MOVE_DOWN>, <&msc SCRL_DOWN>;
mods = <(MOD_LSFT|MOD_RSFT)>;
};
mv_scrl_up: move_scroll_up {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&mmv MOVE_UP>, <&msc SCRL_UP>;
mods = <(MOD_LSFT|MOD_RSFT)>;
};
mv_scrl_right: move_scroll_right {
compatible = "zmk,behavior-mod-morph";
#binding-cells = <0>;
bindings = <&mmv MOVE_RIGHT>, <&msc SCRL_RIGHT>;
mods = <(MOD_LSFT|MOD_RSFT)>;
};
};
};

Expand Down Expand Up @@ -110,7 +146,7 @@
mouse_layer {
bindings = <
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT &none &none
&none &kp LGUI &kp LALT &kp LSHFT &kp LCTRL &none &mv_scrl_left &mv_scrl_down &mv_scrl_up &mv_scrl_right &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &mkp RCLK &mkp LCLK &none &tog MOUSE
>;
Expand Down

0 comments on commit a3710c9

Please sign in to comment.