Giter Club home page Giter Club logo

zmk-config's Introduction

A ZMK firmware for a wireless Corne

#include <behaviors.dtsi> #include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/mouse.h>

&mt { flavor = "tap-preferred"; tapping_term_ms = <200>; };

&mmv { time-to-max-speed-ms = <680>; acceleration-exponent=<2>; }; / {

behaviors {
    hm: homerow_mods {
        compatible = "zmk,behavior-hold-tap";
        label = "HOMEROW_MODS";
        #binding-cells = <2>;
        tapping-term-ms = <200>;
        quick_tap_ms = <0>;
        flavor = "tap-preferred";
        bindings = <&kp>, <&kp>;
    };
    td: tapdance {
            compatible = "zmk,behavior-hold-tap";
            label = "TAPDANCE";
            #binding-cells = <2>;
            tapping-term-ms = <150>;
            quick_tap_ms = <0>;
            flavor = "tap-preferred";
            bindings = <&kp>, <&kp>;
        };
};

    keymap {
            compatible = "zmk,keymap";
            
    default_layer {
       bindings = <
                            &kp Y                   &kp C                     &kp L                      &kp M                   &kp K                    &kp Z                     &kp F                       &kp U                          &td MINUS COMMA         &kp BKSP 
                            &kp I                   &kp S                     &hm LALT R                 &hm LGUI T              &kp G                    &kp P                     &hm RGUI N                  &hm RALT E                     &kp A                   &kp O
                            &kp Q                   &kp V                     &kp W                      &kp D                   &kp J                    &kp B                     &kp H                       &td UNDERSCORE SLASH           &td EXCL DOT            &kp X
                                                                                                         &mt LC(LS(LALT)) SPC    &sk LSHIFT               &sk RCTRL                 &to 1
   >;
 };
                                                                                                                                                                                                                                            
   left_layer {
           bindings = <
                            &kp ESC                 &kp ATSN                  &none                      &kp DLLR                 &kp PRCNT               &kp CARET                 &kp LS(COMMA)               &kp LS(DOT)                    &kp SEMI                &kp BKSP 
                            &kp TAB                 &kp EQUAL                 &kp LA(RBKT)               &kp LA(LS(RBKT))         &kp SQT                 &kp BSLH                  &kp LBRC                    &kp RBRC                       &kp PIPE                &kp ENTER
                            &kp TILDE               &kp LA(N3)                &kp LA(LBKT)               &kp LA(LS(LBKT))         &kp DQT                 &kp LBKT                  &kp LPRN                    &kp RPRN                       &kp RBKT                &to 3 
                                                                                                         &to 0                    &sk LSHIFT              &sk RALT                  &to 2 
   >;
  };

   right_layer {
           bindings = <
                            &kp ESC                 &kp C_PP                  &kp C_PREV                 &kp C_NEXT               &kp LS(MINUS)           &kp MINUS                 &kp N7                      &kp N8                         &kp N9                  &trans
                            &kp TAB                 &trans                    &kp C_VOL_DN               &kp C_VOL_UP             &kp LS(EQUAL)           &kp EQUAL                 &kp N4                      &kp N5                         &kp N6                  &kp ENTER
                            &to 4                   &kp AMPS                  &kp SLASH                  &kp STAR                 &kp DOT                 &kp N0                    &kp N1                      &kp N2                         &kp N3                  &trans 
                                                                                                         &to 0                    &sk LGUI                &sk RALT                  &to 2 
   >;
  };
                                                                                                                                                                                                                                                    
   tri_layer {
           bindings = <
                            &trans                  &mwh SCROLL_LEFT          &mmv MOVE_UP               &mwh SCROLL_RIGHT        &kp NUM_5               &kp LG(LBKT)              &kp LC(LS(TAB))             &kp RC(TAB)                    &kp LG(RBKT)            &trans
                            &kp F1                  &mmv MOVE_LEFT            &mmv MOVE_DOWN             &mmv MOVE_RIGHT          &kp DEL                 &kp LEFT                  &kp DOWN                    &kp UP                         &kp RIGHT               &kp ENTER 
                            &td LG(GRAVE) GRAVE     &mkp RCLK                 &mwh SCROLL_UP             &mwh SCROLL_DOWN         &trans                  &mkp LCLK                 &kp PG_DN                   &kp K_VOL_DN                   &trans                  &trans   
                                                                                                         &to 0                    &trans                  &sk RALT                  &to 1 
   >;
  };       
   bt {
           bindings = <
                            &trans                  &trans                    &trans                     &trans                   &trans                  &trans                    &trans                      &trans                         &trans                  &trans 
                            &trans                  &trans                    &trans                     &trans                   &trans                  &trans                    &trans                      &trans                         &trans                  &trans 
                            &bt BT_PRV              &bt BT_NXT                &bt BT_CLR                 &trans                   &trans                  &trans                    &trans                      &trans                         &trans                  &trans   
                                                                                                         &to 0                    &trans                  &trans                    &to 1 
    >;
   };       

};

};

zmk-config's People

Contributors

chgeuer avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.