diff --git a/.dir-locals.el b/.dir-locals.el index 6e5aaf0..7b09ed2 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1 +1,5 @@ -((auto-mode-alist . (("\\.keymap\\'" . c-mode)))) +;;; Directory Local Variables -*- no-byte-compile: t -*- +;;; For more information see (info "(emacs) Directory Variables") + +((auto-mode-alist . (("\\.keymap\\'" . c-mode))) + (c-mode . ((tab-width . 4)))) diff --git a/config/cradio.keymap b/config/cradio.keymap index 7cc8f89..2510ac4 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -5,6 +5,8 @@ #include #include +#include "zmk-helpers/keypos_def/keypos_34keys.h" + #define BASE 0 #define SYM 1 #define NAV 2 @@ -46,6 +48,96 @@ }; }; + combos { + compatible = "zmk,combos"; + combo_clear { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp K_CANCEL>; + }; + combo_escape { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp ESCAPE>; + }; + combo_equal { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp EQUAL>; + }; + combo_l_ctrl { + timeout-ms = <25>; + key-positions = ; + bindings = <&sk LCTRL>; + }; + combo_tab { + timeout-ms = <25>; + key-positions = ; + bindings = << TAB MODS>; + }; + combo_l_cmd { + timeout-ms = <25>; + key-positions = ; + bindings = <&sk LCMD>; + }; + + + combo_backspace { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp BACKSPACE>; + }; + combo_r_ctrl { + timeout-ms = <25>; + key-positions = ; + bindings = <&sk LCTRL>; + }; + combo_enter { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp ENTER>; + }; + combo_r_cmd { + timeout-ms = <25>; + key-positions = ; + bindings = <&sk CMD>; + }; + + combo_l_alt { + timeout-ms = <80>; + key-positions = ; + bindings = <&sk LALT>; + }; + combo_r_alt { + timeout-ms = <80>; + key-positions = ; + bindings = <&sk LALT>; + }; + + + combo_minus { + timeout-ms = <40>; + key-positions = ; + bindings = <&kp MINUS>; + }; + combo_underscore { + timeout-ms = <40>; + key-positions = ; + bindings = <&kp UNDERSCORE>; + }; + + combo_colon { + timeout-ms = <40>; + key-positions = ; + bindings = <&kp COLON>; + }; + combo_semi { + timeout-ms = <40>; + key-positions = ; + bindings = <&kp SEMI>; + }; + }; + keymap { compatible = "zmk,keymap"; base { diff --git a/config/west.yml b/config/west.yml index b886cbe..e2febbd 100644 --- a/config/west.yml +++ b/config/west.yml @@ -2,12 +2,15 @@ manifest: remotes: - name: zmkfirmware url-base: https://github.com/zmkfirmware - # Additional modules containing boards/shields/custom code can be listed here as well - # See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects + - name: urob + url-base: https://github.com/urob projects: - name: zmk remote: zmkfirmware revision: main import: app/west.yml + - name: zmk-helpers + remote: urob + revision: v2 self: path: config