mirror of
https://github.com/babariviere/zmk-config.git
synced 2025-01-18 11:02:30 +00:00
feat: add combos
This commit is contained in:
parent
93d831512a
commit
0451100e33
3 changed files with 102 additions and 3 deletions
|
@ -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))))
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
#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 = <LT1 LT0>;
|
||||
bindings = <&kp K_CANCEL>;
|
||||
};
|
||||
combo_escape {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <LT2 LT1>;
|
||||
bindings = <&kp ESCAPE>;
|
||||
};
|
||||
combo_equal {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <LT3 LT2>;
|
||||
bindings = <&kp EQUAL>;
|
||||
};
|
||||
combo_l_ctrl {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <LM3 LM2>;
|
||||
bindings = <&sk LCTRL>;
|
||||
};
|
||||
combo_tab {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <LM2 LM1>;
|
||||
bindings = << TAB MODS>;
|
||||
};
|
||||
combo_l_cmd {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <LM4 LM3>;
|
||||
bindings = <&sk LCMD>;
|
||||
};
|
||||
|
||||
|
||||
combo_backspace {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <RT2 RT3>;
|
||||
bindings = <&kp BACKSPACE>;
|
||||
};
|
||||
combo_r_ctrl {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <RM2 RM3>;
|
||||
bindings = <&sk LCTRL>;
|
||||
};
|
||||
combo_enter {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <RM1 RM2>;
|
||||
bindings = <&kp ENTER>;
|
||||
};
|
||||
combo_r_cmd {
|
||||
timeout-ms = <25>;
|
||||
key-positions = <RM3 RM4>;
|
||||
bindings = <&sk CMD>;
|
||||
};
|
||||
|
||||
combo_l_alt {
|
||||
timeout-ms = <80>;
|
||||
key-positions = <LT2 LM3>;
|
||||
bindings = <&sk LALT>;
|
||||
};
|
||||
combo_r_alt {
|
||||
timeout-ms = <80>;
|
||||
key-positions = <RT2 RM3>;
|
||||
bindings = <&sk LALT>;
|
||||
};
|
||||
|
||||
|
||||
combo_minus {
|
||||
timeout-ms = <40>;
|
||||
key-positions = <LT1 LM1>;
|
||||
bindings = <&kp MINUS>;
|
||||
};
|
||||
combo_underscore {
|
||||
timeout-ms = <40>;
|
||||
key-positions = <LM1 LB1>;
|
||||
bindings = <&kp UNDERSCORE>;
|
||||
};
|
||||
|
||||
combo_colon {
|
||||
timeout-ms = <40>;
|
||||
key-positions = <RT1 RM1>;
|
||||
bindings = <&kp COLON>;
|
||||
};
|
||||
combo_semi {
|
||||
timeout-ms = <40>;
|
||||
key-positions = <RM1 RB1>;
|
||||
bindings = <&kp SEMI>;
|
||||
};
|
||||
};
|
||||
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
base {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue