Skip to content

Commit

Permalink
reviung5: keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
dcai committed Oct 2, 2023
1 parent f4c6d32 commit f14d9c3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 22 deletions.
1 change: 0 additions & 1 deletion config/reviung5.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Uncomment the following lines to enable RGB underglow
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
67 changes: 46 additions & 21 deletions config/reviung5.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,52 @@
#define BASE 0
#define BLE 1

&mt {
flavor = "hold-preferred";
tapping-term-ms = <200>;
quick-tap-ms = <180>;
};

&lt {
flavor = "balanced";
tapping-term-ms = <200>;
quick-tap-ms = <180>;
};

#define LT1(k1) &lt 1 k1

/ {
keymap {
compatible = "zmk,keymap";

base_layer {
label = "BASE";
bindings = <
// ╭─────────────┬──────────────┬──────────────────┬─────────────┬─────────────╮
&mo BLE &kp C_PREVIOUS &kp C_PLAY_PAUSE &kp C_NEXT &kp C_MUTE
// ╰─────────────┴──────────────┴──────────────────┴─────────────┴─────────────╯
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

ble_layer {
label = "BLE";
bindings = <
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&trans &out OUT_TOG &bt BT_PRV &bt BT_NXT &bt BT_CLR
// ╰─────────────┴─────────────┴─────────────┴─────────────┴─────────────╯
>;
};
behaviors {
ht: hold_tap {
label = "TAP_HOLD";
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <200>;
quick-tap-ms = <180>;
bindings = <&kp>, <&kp>;
};
};
keymap {
compatible = "zmk,keymap";

base_layer {
label = "BASE";
bindings = <
// ╭──────────────┬──────────────┬──────────────┬──────────────┬──────────────╮
&LT1(LEFT) &kp DOWN &kp UP &kp RIGHT &kp C_MUTE
// ╰──────────────┴──────────────┴──────────────┴──────────────┴──────────────╯
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

ble_layer {
label = "BLE";
bindings = <
// ╭──────────────┬──────────────┬──────────────┬──────────────┬──────────────╮
&trans &out OUT_TOG &bt BT_PRV &bt BT_NXT &bt BT_CLR
// ╰──────────────┴──────────────┴──────────────┴──────────────┴──────────────╯
>;
};
};
};

0 comments on commit f14d9c3

Please sign in to comment.