Add mouse layer
This commit is contained in:
parent
af6b02d0a5
commit
be256b1d97
1 changed files with 15 additions and 2 deletions
|
@ -21,12 +21,13 @@
|
||||||
#define FN 4
|
#define FN 4
|
||||||
#define UC 5
|
#define UC 5
|
||||||
#define MWH 6
|
#define MWH 6
|
||||||
|
#define MOUSE 7
|
||||||
|
|
||||||
#include "combos.dtsi" // must be sourced after layer-shortcuts
|
#include "combos.dtsi" // must be sourced after layer-shortcuts
|
||||||
#include "mouse.dtsi"
|
#include "mouse.dtsi"
|
||||||
#include "extra_keys.h"
|
#include "extra_keys.h"
|
||||||
|
|
||||||
// ZMK_CONDITIONAL_LAYER(SYS NUM, FN) // SYS + NUM --> FN
|
ZMK_CONDITIONAL_LAYER(SYS NAV, MOUSE) // SYS + NAV --> MOUSE
|
||||||
|
|
||||||
/* Navigation keys and misc shortcuts */
|
/* Navigation keys and misc shortcuts */
|
||||||
|
|
||||||
|
@ -300,4 +301,16 @@ ZMK_LAYER(scroll,
|
||||||
//╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯
|
//╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ZMK_LAYER(mouse,
|
||||||
|
//╭──────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭──────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭──────╮
|
||||||
|
X_LT ___ ___ ___ ___ ___ X_MT ___ ___ U_MS_U ___ ___ X_RT
|
||||||
|
//├──────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├──────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├──────┤
|
||||||
|
X_LM ___ ___ ___ ___ ___ X_MM ___ U_MS_L U_MS_D U_MS_R ___ X_RM
|
||||||
|
//├──────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├──────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├──────┤
|
||||||
|
X_LB ___ ___ ___ ___ ___ X_MB ___ ___ ___ ___ ___ X_RB
|
||||||
|
//├──────┤ ╰─────────────┼─────────────┴─────────────┼─────────────┼─────────────┤ ├──────┤ ├─────────────┼─────────────┼─────────────┴───────────────────────────╯ ├──────┤
|
||||||
|
X_LH ___ ___ X_MH U_BTN1 U_BTN2 X_RH
|
||||||
|
//╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯ ╰─────────────┴─────────────╯ ╰──────╯
|
||||||
|
)
|
||||||
|
|
||||||
/* vim: set ft=cpp tw=174: */
|
/* vim: set ft=cpp tw=174: */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue