Skip to content

Commit

Permalink
Port my layer tap and mod tap stuffs over from my qmk keymap 🥰
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Jun 3, 2024
1 parent 1a1c29c commit 2dedad3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// Aliases
#define OPTAB LALT TAB // Mod-Tap shorthand for OPTION when held, TAB when tapped
#define CTESC LCTRL ESC // Mod-Tap shorthand for CTRL when held, ESC when tapped
#define LWRT LOWER F13 // Hold for lower layer, tap for app launcher modal
#define CMDO LGUI F14 // Hold for cmd, tap for macros modal
#define RAI0 RAISE N0 // Mod-Tap shorthand for RAISE layer when held, or numpad 0 when typed
#define SPOTL LG(SPACE) // Key-Press shorthand for CMD-SPACE Spotlight / Raycast / etc. search
#define MPREV C_PREV // Key-Press shorthand for PREV media key
Expand Down Expand Up @@ -67,7 +69,7 @@
&lscsh &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &rscsh
// +----------+----------+----------+----------+----------+----------+ +----------+----------+----------+----------+----------+----------+
// CMD LOWER SPACE ENTER RAISE BKSP DEL
&kp LGUI &mo LOWER &kp SPACE &kp ENTER &mo RAISE &bkspd
&mt CMDO &lth LWRT &kp SPACE &kp ENTER &mo RAISE &bkspd
// +----------+----------+----------+ +----------+----------+----------+
//
// * Notes:
Expand Down Expand Up @@ -316,6 +318,14 @@
mods = <(MOD_LSFT)>;
};

lth: layer_tap_hold_preferred {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <150>;
flavor = "hold-preferred";
bindings = <&mo>, <&kp>;
};

ltd: layer_tap_dance_for_gaming {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
Expand Down

0 comments on commit 2dedad3

Please sign in to comment.