Add nibble keymap and config
This commit is contained in:
parent
d36f9db34d
commit
3424c3b2f7
|
@ -33,6 +33,8 @@ west build --board nice_nano -d build/m60 -- -DSHIELD=m60 -DZMK_CONFIG=/workspac
|
|||
|
||||
west build --board nice_nano -d build/tidbit -- -DSHIELD=tidbit -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||
|
||||
west build --board nice_nano -d build/nibble -- -DSHIELD=nibble -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||
|
||||
west build --board nice_nano -d build/pockettype/default -- -DSHIELD=pockettype -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||
|
||||
west build --board nrf52840_mdk_dongle -d build/pockettype/central -- -DSHIELD=pockettype_central -DZMK_CONFIG=/workspaces/zmk-config/zmk-config/config
|
||||
|
|
23
zmk-config/config/nibble.conf
Normal file
23
zmk-config/config/nibble.conf
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Copyright (c) 2020 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# Display
|
||||
CONFIG_ZMK_DISPLAY=y
|
||||
|
||||
# Disable battery widget as my build is ONLY wired
|
||||
CONFIG_ZMK_WIDGET_BATTERY_STATUS=n
|
||||
|
||||
# Enable WPM widget
|
||||
CONFIG_ZMK_WPM=y
|
||||
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||
|
||||
# Turn off deep sleep
|
||||
CONFIG_ZMK_SLEEP=n
|
||||
|
||||
# Add debug logging
|
||||
#CONFIG_ZMK_USB_LOGGING=y
|
||||
|
||||
# Set default underglow values
|
||||
CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=25
|
||||
CONFIG_ZMK_RGB_UNDERGLOW_SAT_START=100
|
||||
CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=75
|
68
zmk-config/config/nibble.keymap
Normal file
68
zmk-config/config/nibble.keymap
Normal file
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
#define LAYER_ID_DEFAULT 0
|
||||
#define LAYER_ID_FUNC 1
|
||||
#define LAYER_ID_ALT 2
|
||||
|
||||
&pro_micro_i2c {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
/ {
|
||||
sensors {
|
||||
compatible = "zmk,keymap-sensors";
|
||||
sensors = <&encoder_1>;
|
||||
};
|
||||
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
label = "Default";
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||
|
||||
bindings = <
|
||||
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC &kp HOME
|
||||
&kp C_MUTE &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH &kp PG_UP
|
||||
&trans &mo LAYER_ID_ALT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET &kp PG_DN
|
||||
&trans &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT &kp UP &kp END
|
||||
&trans &kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo LAYER_ID_FUNC &kp RCTRL &kp RALT &kp LEFT &kp DOWN &kp RIGHT
|
||||
>;
|
||||
};
|
||||
function_layer {
|
||||
label = "Function";
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||
|
||||
bindings = <
|
||||
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL &kp DEL
|
||||
&trans &kp CAPS &trans &kp PG_UP &kp UP &kp PG_DN &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp INS
|
||||
&none &trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &trans &trans &trans &trans &trans &trans &kp PSCRN
|
||||
&none &trans &trans &kp HOME &trans &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&none &trans &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_PP &kp C_NEXT
|
||||
>;
|
||||
};
|
||||
alt_layer {
|
||||
label = "Alt";
|
||||
|
||||
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||
|
||||
bindings = <
|
||||
&trans &kp LA(F1) &kp LA(F2) &kp LA(F3) &kp LA(F4) &kp LA(F5) &kp LA(F6) &kp LA(F7) &kp LA(F8) &kp LA(F9) &kp LA(F10) &kp LA(F11) &kp LA(F12) &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue