Skip to content

Commit

Permalink
hyper-tab and some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlee committed Apr 2, 2024
1 parent 6f7c843 commit 6073b8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
13 changes: 1 addition & 12 deletions config/behaviors_glv80.dtsi
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
/ {
behaviors {
// For the "layer" key, it'd nice to be able to use it as either a shift or a toggle.
// Configure it as a tap dance, so the first tap (or hold) is a &mo and the second tap is a &to
layer_td: tap_dance_0 {
compatible = "zmk,behavior-tap-dance";
label = "LAYER_TAP_DANCE";
#binding-cells = <0>;
tapping-term-ms = <200>;
// bindings = <&mo LOWER>, <&to LOWER>;
bindings = <&mo NUM>, <&to NUM>;
};

magic: magic_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "MAGIC_HOLD_TAP";
#binding-cells = <2>;
flavor = "tap-preferred";
flavor = "hold-preferred";
tapping-term-ms = <200>;
bindings = <&mo>, <&rgb_ug_status_macro>;
};
Expand Down
6 changes: 3 additions & 3 deletions config/glove80.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
/* Thumb Clusters */

// 👍 Default
#define LT_DEF_U STATUS ___ APPLE_FN
#define RT_DEF_U STATUS ___ PTR_ENT
#define LT_DEF_U STATUS MO_SYS APPLE_FN
#define RT_DEF_U STATUS MO_SYS PTR_ENT

#define LT_DEF_D SPC_NUM CMD_TAB ESC_PTR
#define RT_DEF_D PTR_ENT NAV_KEY SFT_BSP
Expand Down Expand Up @@ -50,7 +50,7 @@
ZMK_LAYER(def_layer,
L_FUN R_FUN
&kp EQUAL L_NUM R_NUM &kp MINUS
&kp TAB L_DEF_U R_DEF_U BSL_HYP
TAB_HYP L_DEF_U R_DEF_U BSL_HYP
ESC_MEH L_DEF_H R_DEF_H SQT_MEH
&kp GRAVE L_DEF_D LT_DEF_U RT_DEF_U R_DEF_D &kp PG_UP
MO_SYS L_DEF_BOT LT_DEF_D RT_DEF_D R_DEF_BOT &kp PG_DN
Expand Down
8 changes: 6 additions & 2 deletions config/key_codes.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@
#define SQT_MEH &mt MEH SQT
#define SLS_MEH &mt MEH SLASH
#define BSL_HYP &mt HYPER BSLH
#define TAB_HYP &mt HYPER TAB
#define STATUS &rgb_ug_status_macro
// FIXME
#define SYS_STATUS &magic SYS 0


// FIXME only the &magic bit works, not SYS
// #define SYS_STATUS &magic SYS
// #define SYS_STATUS &lt SYS &rgb_ug_status_macro

0 comments on commit 6073b8c

Please sign in to comment.