keyboard/zmk-config/config/tidbit.keymap

93 lines
2.8 KiB
Plaintext
Raw Normal View History

2020-12-04 03:08:20 +00:00
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/keys.h>
2020-12-04 22:43:05 +00:00
#include <dt-bindings/zmk/ext_power.h>
2020-12-04 03:08:20 +00:00
&spi1 {
status = "disabled";
};
&encoder_1_top_row {
status = "disabled";
};
2020-12-04 03:08:20 +00:00
&encoder_4 {
status = "okay";
};
&pro_micro_i2c {
status = "okay";
};
/ {
sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder_4>;
};
// Purple : &rgb_ug RGB_COLOR_HSB(275, 100, 50)
// Orange : &rgb_ug RGB_COLOR_HSB(35, 100, 50)
// Blue : &rgb_ug RGB_COLOR_HSB(215, 100, 50)
2020-12-04 03:08:20 +00:00
keymap {
compatible = "zmk,keymap";
default_layer {
2021-01-07 12:11:43 +00:00
label = "Mouse";
2020-12-04 03:08:20 +00:00
bindings = <
&to 1 &to 2 &to 3
2020-12-04 22:43:05 +00:00
&none &none &none &kp LC(LA(TAB))
&none &none &none &kp LG(DOWN_ARROW)
&kp ESCAPE &none &none &none
&kp C_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &none
>;
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
};
navigation_layer {
2021-01-07 12:11:43 +00:00
label = "Nav";
bindings = <
&to 0 &to 2 &to 3
&kp PG_UP &kp UP &kp PG_DN &none
&kp LEFT &kp DOWN &kp RIGHT &kp END
2021-01-07 12:11:43 +00:00
&kp HOME &none &kp BSPC &kp ENTER
2021-01-05 18:01:31 +00:00
&kp C_MUTE &none &none &kp LA(F4)
>;
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
};
2020-12-04 22:43:05 +00:00
num_pad_layer {
2021-01-07 12:11:43 +00:00
label = "Num Pad";
2020-12-04 22:43:05 +00:00
bindings = <
&to 0 &kp KP_NUMLOCK &kp KP_SLASH
2020-12-04 03:08:20 +00:00
&kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_ASTERISK
&kp KP_NUMBER_4 &kp KP_NUMBER_5 &kp KP_NUMBER_6 &kp KP_MINUS
&kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_PLUS
&kp C_MUTE &kp KP_NUMBER_0 &kp KP_DOT &kp KP_ENTER
>;
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
};
zmk_layer {
2021-01-07 12:11:43 +00:00
label = "ZMK";
2020-12-04 03:08:20 +00:00
bindings = <
&to 0 &reset &bootloader
2020-12-04 03:08:20 +00:00
&out OUT_TOG &out OUT_USB &out OUT_BLE &none
&rgb_ug RGB_TOG &bt BT_PRV &bt BT_NXT &bt BT_CLR
&ext_power EXT_POWER_TOGGLE_CMD &bt BT_SEL 4 &bt BT_SEL 5 &bt BT_SEL 6
&kp C_MUTE &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3
>;
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
};
};
};