mirror of
https://github.com/litruv/zmk-config.git
synced 2026-11-25 16:16:58 +11:00
Compare commits
80
Commits
master
..
1adf0c071e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1adf0c071e | ||
|
|
354fd0d231 | ||
|
|
c21cd51cd2 | ||
|
|
38cf1ad9ff | ||
|
|
7074d58f3c | ||
|
|
11c088a9b0 | ||
|
|
0fe919019e | ||
|
|
ef984843a6 | ||
|
|
6883bbb4b6 | ||
|
|
879ed44917 | ||
|
|
00cf71385f | ||
|
|
555e456b06 | ||
|
|
6c2a68f5fe | ||
|
|
ed86e7789c | ||
|
|
51d1475c2d | ||
|
|
326a370f8d | ||
|
|
9a2e928d4e | ||
|
|
6b698532a8 | ||
|
|
5a967b2243 | ||
|
|
099ea256d6 | ||
|
|
95a8ed3636 | ||
|
|
681d125ed5 | ||
|
|
a6536b6354 | ||
|
|
50a1274143 | ||
|
|
1400bbfae7 | ||
|
|
e2e3a3917b | ||
|
|
9f2109745a | ||
|
|
afc790c025 | ||
|
|
6ab9362b6b | ||
|
|
a3fff87e2f | ||
|
|
2e6d218b8a | ||
|
|
656f9e95f8 | ||
|
|
13f8b41b9c | ||
|
|
72b6fd961a | ||
|
|
e17a24cf35 | ||
|
|
2f3d490c4c | ||
|
|
2178cd3268 | ||
|
|
705b0d76ec | ||
|
|
0a6133fee7 | ||
|
|
cc62241f4e | ||
|
|
68630f2912 | ||
|
|
a1f5a87b82 | ||
|
|
7c40fbd62a | ||
|
|
b1bc8abe7b | ||
|
|
97b72f313d | ||
|
|
919a35fc9a | ||
|
|
cb3814c79f | ||
|
|
48bd4fcc51 | ||
|
|
1b8a852546 | ||
|
|
8faa832d6d | ||
|
|
c8f27dc318 | ||
|
|
7628a082c1 | ||
|
|
b6b509023a | ||
|
|
20ca7fac0c | ||
|
|
6ce336ca51 | ||
|
|
0bd9cef101 | ||
|
|
4ee469aa62 | ||
|
|
35996f2a99 | ||
|
|
271f5d819b | ||
|
|
6e045b2de2 | ||
|
|
beaf3f64c2 | ||
|
|
114492559d | ||
|
|
fada43cb0b | ||
|
|
44bbe08b81 | ||
|
|
0c091ce5ab | ||
|
|
b1d4e90e22 | ||
|
|
21b1b0c5aa | ||
|
|
02e243c7ee | ||
|
|
795446bbfd | ||
|
|
0e781f93e4 | ||
|
|
ba572fd43a | ||
|
|
4e31de0480 | ||
|
|
6c3e35c047 | ||
|
|
9acb2a5580 | ||
|
|
a8653c32c4 | ||
|
|
5dfb1a2286 | ||
|
|
51cf6e088a | ||
|
|
d11229c989 | ||
|
|
51dc59fa16 | ||
|
|
b8ca1991c5 |
@@ -0,0 +1,26 @@
|
|||||||
|
if SHIELD_SOFLE_DONGLE
|
||||||
|
|
||||||
|
# Max 16 characters in keyboard name
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "Sofle"
|
||||||
|
|
||||||
|
config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
|
default y
|
||||||
|
|
||||||
|
config ZMK_SPLIT
|
||||||
|
default y
|
||||||
|
|
||||||
|
# Set this to the number of peripherals your dongle will have.
|
||||||
|
# For a unibody, this would be 1. If you have left and right halves, set it to 2, etc.
|
||||||
|
config ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS
|
||||||
|
default 2
|
||||||
|
|
||||||
|
# Set this to ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS + your desired number of BT profiles (default is 5)
|
||||||
|
config BT_MAX_CONN
|
||||||
|
default 6
|
||||||
|
|
||||||
|
# Set this to the same number as BT_MAX_CONN
|
||||||
|
config BT_MAX_PAIRED
|
||||||
|
default 6
|
||||||
|
|
||||||
|
endif
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# No whitespace after the comma or in the keyboard name!
|
||||||
|
config SHIELD_SOFLE_DONGLE
|
||||||
|
def_bool $(shields_list_contains,sofle_dongle)
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
#include <physical_layouts.dtsi>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
josefadamcik_sofle_layout: josefadamcik_sofle_layout {
|
||||||
|
compatible = "zmk,physical-layout";
|
||||||
|
display-name = "Sofle";
|
||||||
|
|
||||||
|
keys // w h x y rot rx ry
|
||||||
|
= <&key_physical_attrs 100 100 0 37 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 100 37 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 200 12 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 300 0 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 400 12 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 500 24 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 900 24 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1000 12 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1100 0 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1200 12 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1300 37 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1400 37 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 0 137 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 100 137 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 200 112 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 300 100 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 400 112 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 500 124 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 900 124 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1000 112 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1100 100 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1200 112 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1300 137 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1400 137 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 0 237 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 100 237 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 200 212 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 300 200 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 400 212 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 500 224 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 900 224 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1000 212 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1100 200 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1200 212 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1300 237 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1400 237 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 0 337 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 100 337 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 200 312 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 300 300 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 400 312 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 500 324 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 600 274 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 800 274 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 900 324 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1000 312 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1100 300 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1200 312 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1300 337 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1400 337 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 175 437 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 275 412 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 375 412 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 490 412 1200 490 412>
|
||||||
|
, <&key_physical_attrs 100 150 600 383 2400 600 433>
|
||||||
|
, <&key_physical_attrs 100 150 800 383 (-2400) 900 433>
|
||||||
|
, <&key_physical_attrs 100 100 910 412 (-1200) 1010 412>
|
||||||
|
, <&key_physical_attrs 100 100 1025 412 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1125 412 0 0 0>
|
||||||
|
, <&key_physical_attrs 100 100 1225 437 0 0 0>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
#include <dt-bindings/zmk/matrix_transform.h>
|
||||||
|
#include "sofle.dtsi"
|
||||||
|
|
||||||
|
&josefadamcik_sofle_layout {
|
||||||
|
transform = <&default_transform>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zmk,kscan = &mock_kscan;
|
||||||
|
zmk,physical-layout = &josefadamcik_sofle_layout;
|
||||||
|
};
|
||||||
|
|
||||||
|
mock_kscan: mock_kscan_0 {
|
||||||
|
compatible = "zmk,kscan-mock";
|
||||||
|
columns = <0>;
|
||||||
|
rows = <0>;
|
||||||
|
events = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Rotary encoders (same logical wiring as halves; mark disabled until mapped to actual pins if needed) */
|
||||||
|
left_encoder: left_encoder {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
a-gpios = <&gpio0 21 (GPIO_ACTIVE_HIGH)>;
|
||||||
|
b-gpios = <&gpio0 20 (GPIO_ACTIVE_HIGH)>;
|
||||||
|
steps = <80>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
right_encoder: right_encoder {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
a-gpios = <&gpio0 20 (GPIO_ACTIVE_HIGH)>;
|
||||||
|
b-gpios = <&gpio0 21 (GPIO_ACTIVE_HIGH)>;
|
||||||
|
steps = <80>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
default_transform: keymap_transform_0 {
|
||||||
|
compatible = "zmk,matrix-transform";
|
||||||
|
columns = <16>;
|
||||||
|
rows = <4>;
|
||||||
|
map = <
|
||||||
|
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11)
|
||||||
|
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11)
|
||||||
|
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10) RC(2,11)
|
||||||
|
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) RC(3,8) RC(3,9) RC(3,10) RC(3,11)
|
||||||
|
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
sensors: sensors {
|
||||||
|
compatible = "zmk,keymap-sensors";
|
||||||
|
sensors = <&left_encoder &right_encoder>;
|
||||||
|
triggers-per-rotation = <20>;
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -20,5 +20,13 @@
|
|||||||
include:
|
include:
|
||||||
- board: nice_nano_v2
|
- board: nice_nano_v2
|
||||||
shield: sofle_left
|
shield: sofle_left
|
||||||
|
cmake-args: -DCONFIG_ZMK_SPLIT=y -DCONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
|
||||||
- board: nice_nano_v2
|
- board: nice_nano_v2
|
||||||
shield: sofle_right
|
shield: sofle_right
|
||||||
|
cmake-args: -DCONFIG_ZMK_SPLIT=y -DCONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
|
||||||
|
- board: nice_nano_v2
|
||||||
|
shield: sofle_dongle
|
||||||
|
snippet: studio-rpc-usb-uart
|
||||||
|
cmake-args: -DCONFIG_ZMK_STUDIO=y
|
||||||
|
- board: nice_nano_v2
|
||||||
|
shield: settings_reset
|
||||||
+8
-13
@@ -1,17 +1,12 @@
|
|||||||
# Copyright (c) 2020 Ryan Cross
|
# Only enable display and encoders for non-dongle shields
|
||||||
# SPDX-License-Identifier: MIT
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
# Uncomment the following line to enable the Sofle OLED Display
|
CONFIG_EC11=y
|
||||||
# CONFIG_ZMK_DISPLAY=y
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
# Uncomment these two lines to add support for encoders
|
CONFIG_ZMK_SLEEP=y
|
||||||
# CONFIG_EC11=y
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
|
||||||
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
|
||||||
|
|
||||||
# Uncomment this line below to add rgb underglow / backlight support
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
# CONFIG_ZMK_RGB_UNDERGLOW=y
|
|
||||||
|
|
||||||
# Uncomment the line below to disable external power toggling by the underglow.
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
# By default toggling the underglow on and off also toggles external power
|
|
||||||
# on and off. This also causes the display to turn off.
|
|
||||||
# CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
|
|
||||||
|
|||||||
+173
-58
@@ -5,10 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
|
||||||
#include <dt-bindings/zmk/bt.h>
|
|
||||||
#include <dt-bindings/zmk/rgb.h>
|
|
||||||
#include <dt-bindings/zmk/ext_power.h>
|
#include <dt-bindings/zmk/ext_power.h>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/rgb.h>
|
||||||
|
|
||||||
#define BASE 0
|
#define BASE 0
|
||||||
#define LOWER 1
|
#define LOWER 1
|
||||||
@@ -16,13 +15,92 @@
|
|||||||
#define ADJUST 3
|
#define ADJUST 3
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
// Activate ADJUST layer by pressing raise and lower
|
||||||
|
|
||||||
// Activate ADJUST layer by pressing raise and lower
|
|
||||||
conditional_layers {
|
conditional_layers {
|
||||||
compatible = "zmk,conditional-layers";
|
compatible = "zmk,conditional-layers";
|
||||||
|
|
||||||
adjust_layer {
|
adjust_layer {
|
||||||
if-layers = <LOWER RAISE>;
|
if-layers = <1 2>;
|
||||||
then-layer = <ADJUST>;
|
then-layer = <3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
macros {
|
||||||
|
CustomEvent: CustomEvent {
|
||||||
|
compatible = "zmk,behavior-macro";
|
||||||
|
#binding-cells = <0>;
|
||||||
|
bindings = <&kp TAB &kp LS(A) &kp D &kp D &kp SPACE &kp LS(C) &kp U &kp S &kp T &kp O &kp M &kp SPACE &kp LS(E) &kp V &kp E &kp N &kp T &kp DOT &kp DOT &kp DOT &kp ENTER>;
|
||||||
|
label = "CUSTOMEVENT";
|
||||||
|
wait-ms = <5>;
|
||||||
|
tap-ms = <5>;
|
||||||
|
};
|
||||||
|
|
||||||
|
PrintString: new_macro {
|
||||||
|
compatible = "zmk,behavior-macro";
|
||||||
|
#binding-cells = <0>;
|
||||||
|
bindings = <&kp TAB &kp LS(P) &kp R &kp I &kp N &kp T &kp SPACE &kp LS(S) &kp T &kp R &kp I &kp N &kp G &kp ENTER>;
|
||||||
|
label = "NEW_MACRO";
|
||||||
|
};
|
||||||
|
|
||||||
|
DCancelA: DCancelA {
|
||||||
|
compatible = "zmk,behavior-macro";
|
||||||
|
#binding-cells = <0>;
|
||||||
|
bindings =
|
||||||
|
<¯o_release>,
|
||||||
|
<&kp A>,
|
||||||
|
<¯o_press>,
|
||||||
|
<&kp D>,
|
||||||
|
<¯o_pause_for_release>,
|
||||||
|
<¯o_release>,
|
||||||
|
<&kp D>,
|
||||||
|
<¯o_press>,
|
||||||
|
<&kp A>;
|
||||||
|
|
||||||
|
label = "DCANCELA";
|
||||||
|
};
|
||||||
|
|
||||||
|
ACancelD: ACancelD {
|
||||||
|
compatible = "zmk,behavior-macro";
|
||||||
|
#binding-cells = <0>;
|
||||||
|
bindings =
|
||||||
|
<¯o_release>,
|
||||||
|
<&kp D>,
|
||||||
|
<¯o_press>,
|
||||||
|
<&kp A>,
|
||||||
|
<¯o_pause_for_release>,
|
||||||
|
<¯o_release>,
|
||||||
|
<&kp A>,
|
||||||
|
<¯o_press>,
|
||||||
|
<&kp D>;
|
||||||
|
|
||||||
|
label = "ACANCELD";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
combos {
|
||||||
|
compatible = "zmk,combos";
|
||||||
|
|
||||||
|
BackspaceOnLeft {
|
||||||
|
bindings = <&kp BACKSPACE>;
|
||||||
|
key-positions = <24 36>;
|
||||||
|
};
|
||||||
|
|
||||||
|
ComboDelete {
|
||||||
|
bindings = <&kp DELETE>;
|
||||||
|
key-positions = <53 54>;
|
||||||
|
};
|
||||||
|
|
||||||
|
NextDesktop {
|
||||||
|
bindings = <&kp LG(LC(RIGHT_ARROW))>;
|
||||||
|
key-positions = <4 5>;
|
||||||
|
require-prior-idle-ms = <1000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
PreviousDesktop {
|
||||||
|
bindings = <&kp LC(LG(LEFT_ARROW))>;
|
||||||
|
key-positions = <4 3>;
|
||||||
|
require-prior-idle-ms = <1000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -30,79 +108,116 @@
|
|||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
default_layer {
|
default_layer {
|
||||||
display-name = "default";
|
display-name = "Base";
|
||||||
// ------------------------------------------------------------------------------------------------------------
|
|
||||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | BKSPC |
|
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BSPC |
|
||||||
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
|
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | DEL |
|
||||||
// | SHIFT | Z | X | C | V | B | MUTE | | | N | M | , | . | / | SHIFT |
|
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||||
// | GUI | ALT | CTRL | LOWER| ENTER | | SPACE | RAISE| CTRL | ALT | GUI |
|
// | SHIFT | Z | X | C | V | B | MUTE | | | N | M | , | . | / | SHIFT |
|
||||||
|
// | CTRL| WIN | ALT | LOWER| SPACE | | ENTER | RAISE| ALT | WIN | CTRL |
|
||||||
|
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &none
|
&mt GRAVE ESCAPE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
|
||||||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp DEL
|
||||||
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
&mo 4 &kp A &kp S &kp D &kp F &kp G &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 C_MUTE &none &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
&kp LEFT_SHIFT &kp Z &kp X &kp C &kp V &kp B &kp LC(V) &kp C_MUTE &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||||
&kp LGUI &kp LALT &kp RAISE &mo LOWER &kp RET &kp SPACE &mo RAISE &kp RCTRL &kp RALT &kp RGUI
|
&kp LCTRL &kp LGUI &kp LALT &mo 1 &kp SPACE &kp RET &mo 2 &kp RIGHT_ALT &kp RGUI &kp RCTRL
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings =
|
||||||
|
<&inc_dec_kp LC(RIGHT) LC(LEFT)>,
|
||||||
|
<&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lower_layer {
|
lower_layer {
|
||||||
display-name = "lower";
|
display-name = "Lower";
|
||||||
// TODO: Some binds are waiting for shifted keycode support.
|
|
||||||
// ------------------------------------------------------------------------------------------------------------
|
// TODO: Some binds are waiting for shifted keycode support.
|
||||||
// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 |
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 |
|
// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||||
// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | |
|
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | F12 |
|
||||||
// | | = | - | + | { | } | | | | [ | ] | ; | : | \ | |
|
// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | |
|
||||||
// | | | | | | | | | | | |
|
// | | = | - | + | { | } | | | | [ | ] | ; | : | \ | |
|
||||||
|
// | | | | | | | | | | | |
|
||||||
|
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
|
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &trans &trans &trans &trans &trans
|
||||||
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp F12
|
&kp F9 &none &kp UP_ARROW &kp LC(E) &CustomEvent &mt LA(S) LA(P) &trans &trans &trans &trans &trans &trans
|
||||||
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp PIPE
|
&mo 5 &kp LEFT &kp DOWN_ARROW &kp RIGHT &mt LC(LS(F)) LC(F) &PrintString &trans &trans &trans &trans &trans &trans
|
||||||
&trans &kp EQUAL &kp MINUS &kp PLUS &kp LBRC &kp RBRC &trans &trans &kp LBKT &kp RBKT &kp SEMI &kp COLON &kp BSLH &trans
|
&kp LSHFT &kp LC(SLASH) &none &none &none &kp LC(B) &kp ESCAPE &trans &trans &trans &trans &trans &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&none &none &kp ENTER &trans &trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings =
|
||||||
|
<&inc_dec_kp UP_ARROW DOWN>,
|
||||||
|
<&inc_dec_kp PG_UP PG_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
raise_layer {
|
raise_layer {
|
||||||
display-name = "raise";
|
display-name = "Upper";
|
||||||
// ------------------------------------------------------------------------------------------------------------
|
|
||||||
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
// | | INS | PSCR | GUI | | | | PGUP | | ^ | | | |
|
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||||
// | | ALT | CTRL | SHIFT | | CAPS | | PGDN | <- | v | -> | DEL | BKSPC |
|
// | | INS | PSCR | GUI | | | | PGUP | | ^ | | | |
|
||||||
// | | UNDO | CUT | COPY | PASTE | | | | | | | | | | |
|
// | | ALT | CTRL | SHIFT | | CAPS | | PGDN | <- | v | -> | DEL | BKSPC |
|
||||||
// | | | | | | | | | | | |
|
// | | UNDO | CUT | COPY | PASTE | | | | | | | | | | |
|
||||||
|
// | | | | | | | | | | | |
|
||||||
|
|
||||||
bindings = <
|
bindings = <
|
||||||
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
|
&studio_unlock &none &none &none &none &none &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
|
||||||
&trans &kp INS &kp PSCRN &kp K_CMENU &trans &trans &kp PG_UP &trans &kp UP &trans &kp N0 &trans
|
&trans &trans &trans &trans &trans &trans &kp PG_UP &kp HOME &kp UP &kp END &kp LEFT_BRACKET &kp RIGHT_BRACKET
|
||||||
&trans &kp LALT &kp LCTRL &kp LSHFT &trans &kp CLCK &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp DEL &kp BSPC
|
&trans &trans &trans &trans &trans &trans &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp MINUS &kp EQUAL
|
||||||
&trans &kp K_UNDO &kp K_CUT &kp K_COPY &kp K_PASTE &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &kp PRINTSCREEN &trans &trans &trans &trans &kp BACKSLASH &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings =
|
||||||
|
<&inc_dec_kp A B>,
|
||||||
|
<&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
||||||
};
|
};
|
||||||
|
|
||||||
adjust_layer {
|
adjust_layer {
|
||||||
// ----------------------------------------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------------------------------------
|
||||||
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||||
// | EXTPWR | RGB_HUD | RGB_HUI | RGB_SAD | RGB_SAI | RGB_EFF | | | | | | | |
|
// | EXTPWR | RGB_HUD | RGB_HUI | RGB_SAD | RGB_SAI | RGB_EFF | | | | | | | |
|
||||||
// | | RGB_BRD | RGB_BRI | | | | | | | | | | |
|
// | | RGB_BRD | RGB_BRI | | | | | | | | | | |
|
||||||
// | | | | | | | RGB_TOG | | | | | | | | |
|
// | | | | | | | RGB_TOG | | | | | | | | |
|
||||||
// | | | | | | | | | | | |
|
// | | | | | | | | | | | |
|
||||||
display-name = "adjust";
|
|
||||||
|
display-name = "Adjust";
|
||||||
bindings = <
|
bindings = <
|
||||||
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
|
&studio_unlock &none &none &none &none &none &none &none &none &none &none &none
|
||||||
&ext_power EP_TOG &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
|
&ext_power EP_TOG &rgb_ug RGB_HUD &rgb_ug RGB_HUI &rgb_ug RGB_SAD &rgb_ug RGB_SAI &rgb_ug RGB_EFF &none &none &none &none &none &none
|
||||||
&none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none &none &none &none &none &none
|
&none &rgb_ug RGB_BRD &rgb_ug RGB_BRI &none &none &none &none &none &none &none &none &none
|
||||||
&none &none &none &none &none &none &rgb_ug RGB_TOG &none &none &none &none &none &none &none
|
&none &none &none &none &none &none &rgb_ug RGB_TOG &none &none &none &none &none &none &none
|
||||||
&none &none &none &none &none &none &none &none &none &none
|
&none &none &none &none &none &none &none &none &none &none
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Opposites {
|
||||||
|
bindings = <
|
||||||
|
&kp BACKSPACE &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans &trans &trans
|
||||||
|
&kp DEL &kp Y &kp U &kp I &kp O &kp P &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &kp H &kp J &kp K &kp L &kp SEMI &kp RSHFT &trans &trans &trans &trans &trans
|
||||||
|
&kp LSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESCAPE &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&kp EQUAL &kp MINUS &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp RET &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
|
||||||
|
label = "Opposites";
|
||||||
|
sensor-bindings = <&inc_dec_kp DOWN UP>;
|
||||||
|
};
|
||||||
|
|
||||||
|
OppositeFunctions {
|
||||||
|
bindings = <
|
||||||
|
&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 &trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
|
||||||
|
label = "Opp Func";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Only enable display and encoders for non-dongle shields
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
|
||||||
|
|
||||||
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# Configuration for Sofle Dongle (Wireless Receiver)
|
||||||
|
# Acts as a central node; we want encoder events processed even if dongle has no physical encoders
|
||||||
|
# (some firmware paths expect sensor count to match halves for behavior consistency)
|
||||||
|
|
||||||
|
# No local display
|
||||||
|
CONFIG_ZMK_DISPLAY=n
|
||||||
|
|
||||||
|
# Enable EC11 driver so encoder sensor behavior compiles & split forwarded events are handled
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
# Power & Sleep
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
|
||||||
|
|
||||||
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
|
|
||||||
|
# No display widgets
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=n
|
||||||
|
CONFIG_ZMK_STUDIO=y
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Configuration for Sofle Left Half
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
|
||||||
|
|
||||||
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
|
|
||||||
|
# Split configuration
|
||||||
|
CONFIG_ZMK_SPLIT=y
|
||||||
|
CONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# Configuration for Sofle Right Half
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
|
||||||
|
|
||||||
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
|
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
|
|
||||||
|
# Split configuration
|
||||||
|
CONFIG_ZMK_SPLIT=y
|
||||||
|
CONFIG_ZMK_SPLIT_ROLE_CENTRAL=n
|
||||||
Reference in New Issue
Block a user