From 8dff2a1b33058e66b5751cd1995441d63937e90d Mon Sep 17 00:00:00 2001 From: Matthew Todd Date: Fri, 29 Nov 2024 10:16:11 -0500 Subject: [PATCH] Add a function layer. Going to try to use these for debugging with nvim-dap. --- config/cradio.keymap | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/config/cradio.keymap b/config/cradio.keymap index 9161b6e..a626a8b 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -12,8 +12,9 @@ #define MEDIA 3 #define NUM 4 #define SYM 5 -#define STURDY_NUM 6 -#define STURDY_SYM 7 +#define FUN 6 +#define STURDY_NUM 7 +#define STURDY_SYM 8 // Home row mods macro #define HRML(k1,k2,k3,k4) &htl LCTRL k1 &htl LALT k2 &htl LGUI k3 &htl LSHFT k4 @@ -57,7 +58,7 @@ thumbs_default_right { layers = ; key-positions = <32 33>; - bindings = <&kp DEL>; + bindings = << FUN DEL>; timeout-ms = <50>; }; }; @@ -184,6 +185,24 @@ >; }; + function_layer { + bindings = < + //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ + //│ │ │ │ │ │ │ │ │ │ │ │ + &kp F12 &kp F7 &kp F8 &kp F9 &none &none &none &none &none &none + //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ + //│ │ │ │ │ │ │ │ │ │ │ │ + &kp F11 &kp F4 &kp F5 &kp F6 &none &none &kp RSHFT &kp RGUI &kp RALT &kp RCTRL + //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ + //│ │ │ │ │ │ │ │ │ │ │ │ + &kp F10 &kp F1 &kp F2 &kp F3 &none &none &none &none &none &none + //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ + // | | | | | | + &kp RPAR &kp UNDER &none &none + // ╰──────────┴──────────╯ ╰──────────┴──────────╯ + >; + }; + sturdy_number_layer { bindings = < //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮