Skip to content

Commit

Permalink
per layer rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
juliamertz committed Sep 30, 2024
1 parent 1cd3703 commit 9b4c79a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 12 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
glove80-zmk = {
url = "github:moergo-sc/zmk";
# Community fork including per layer/key rgb
url = "github:darknao/zmk/darknao/rgb-dts";
flake = false;
};
flake-parts = {
Expand Down
2 changes: 2 additions & 0 deletions glove80.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_EXPERIMENTAL_RGB_LAYER=y
CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y
49 changes: 44 additions & 5 deletions glove80.keymap
Original file line number Diff line number Diff line change
@@ -1,16 +1,44 @@
#include <behaviors.dtsi>
/* Include all behavior includes needed */
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/rgb_colors.h>

/* Automatically generated layer name #define */
#define LAYER_Base 0
#define LAYER_Lower 1
#define LAYER_Magic 2
#define LAYER_Gaming 3

/ {
underglow-layer {
compatible = "zmk,underglow-layer";
lower {
bindings = <
______ ______ ______ ______ ______ 0x8A2BE2 0xa966e8 0xcba8ec ______ ______
______ ______ ______ ______ ______ ______ ______ GOLD ORANGE ORANGE ORANGE ______
______ ______ ______ RED ______ ______ ______ YELLOW YELLOW YELLOW ORANGE ______
______ ______ RED RED RED ______ ______ YELLOW YELLOW YELLOW ORANGE ______
______ ______ ______ ______ ______ ______ ______ ______ GREEN ______ ______ ______ ______ YELLOW YELLOW YELLOW RED ______
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ YELLOW YELLOW YELLOW RED ______
>;
layer-id = <LAYER_Lower>;
};

gaming {
bindings = <
______ ______ ______ ______ ______ ______ ______ ______ ______ ______
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
______ ______ ______ PINK ______ ______ ______ ______ ______ ______ ______ ______
______ ______ PINK PINK PINK ______ ______ ______ ______ ______ ______ ______
______ ______ ______ ______ ______ ______ ______ ______ RED ______ ______ ______ ______ ______ ______ ______ ______ ______
______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______ ______
>;
layer-id = <LAYER_Gaming>;
};
};
};

/* Glove80 system behavior & macros */
/ {
behaviors {
// For the "layer" key, it'd nice to be able to use it as either a shift or a toggle.
Expand Down Expand Up @@ -237,6 +265,17 @@
#define POS_RH_C6R5 63
#define POS_RH_C6R6 79

/* Custom Defined Behaviors */
/ {

};

/ {
macros {

};
};

/ {
combos {
compatible = "zmk,combos";
Expand Down Expand Up @@ -287,8 +326,8 @@
&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &trans &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp ESC &trans &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI
&kp GRAVE &kp Z &kp X &kp C &kp V &kp B &kp LSHFT &kp LCTRL &lower &kp RALT &kp RCTRL &kp RSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp PG_ UP
&tog 3 &kp HOME &kp END &kp LEFT &kp RIGHT &kp SPACE &kp LGUI &kp RET &kp RGUI &kp RET &kp BSPC &kp UP &kp DOWN &kp LBKT &kp RBKT &kp PG_DN
&kp GRAVE &kp Z &kp X &kp C &kp V &kp B &kp LSHFT &kp LGUI &tog 3 &kp RALT &kp RCTRL &kp RSHFT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp PG_UP
&trans &kp HOME &kp END &kp LEFT &kp RIGHT &kp SPACE &kp LCTRL &kp RET &kp RGUI &kp RET &kp BSPC &kp UP &kp DOWN &kp LBKT &kp RBKT &kp PG_DN
>;
};
};
Expand Down

0 comments on commit 9b4c79a

Please sign in to comment.