Mouse layer + caps word

This commit is contained in:
Cat /dev/Nulo 2022-08-26 15:29:14 -03:00
parent 8bd9b5fb51
commit 5deeb64d29
3 changed files with 20 additions and 3 deletions

View file

@ -6,3 +6,5 @@ CONFIG_ZMK_SLEEP=y
# Milliseconds of inactivity before entering deep sleep (default 900000)
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=5400000
CONFIG_ZMK_MOUSE=y

View file

@ -8,12 +8,14 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/mouse.h>
#define BASE_L 0
#define SYM_L 1
#define NAV_L 2
#define NUM_L 3
#define FUN_L 4
#define MOUSE_L 5
// &lt { quick_tap_ms = <100>; };
@ -49,6 +51,8 @@
COMBO(reset_left, &bootloader, 0 1 2 3, 100)
COMBO(reset_right, &bootloader, 6 7 8 9, 100)
COMBO(caps_word, &caps_word, 10 19, 100)
};
behaviors {
@ -93,7 +97,7 @@
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&lhm LSHFT A &lhm LALT S &lhm LCTRL D &lhm LGUI F &lhm RALT G &rhm RALT H &rhm LGUI J &rhm LCTRL K &rhm LALT L &rhm LSHFT SEMI
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SINGLE_QUOTE
&mo NAV_L &kp LSHFT &none &none &lt NUM_L SPACE &mo SYM_L
&mo NAV_L &mo MOUSE_L &none &none &lt NUM_L SPACE &mo SYM_L
>;
};
@ -132,5 +136,14 @@
&trans &trans &trans &trans &trans &trans
>;
};
mouse_layer {
bindings = <
&none &none &none &none &none &none &mkp LCLK &mkp RCLK &none &none
&kp LSHFT &kp LALT &kp LCTRL &kp LGUI &kp RALT &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT &none
&none &none &none &none &none &none &mwh SCROLL_DOWN &mwh SCROLL_UP &none &none
&trans &trans &trans &trans &trans &trans
>;
};
};
};

View file

@ -4,10 +4,12 @@ manifest:
url-base: https://github.com/zmkfirmware
- name: andrewjrae
url-base: https://github.com/andrewjrae
- name: ftc
url-base: https://github.com/ftc
projects:
- name: zmk
remote: zmkfirmware
# revision: global-quick-tap
remote: ftc
revision: mouse-ftc
import: app/west.yml
self:
path: config