-
Notifications
You must be signed in to change notification settings - Fork 1
/
combos.def
54 lines (49 loc) · 1.82 KB
/
combos.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include QMK_KEYBOARD_H
#include "keymap.h"
#include "combos/personal.def"
#include "combos/shortcuts.def"
#include "combos/steno.def"
#include "combos/text.def"
// Symbols map
// ~ ( ) $ ◌ ◌ ! [ ] ^
// @ ; - ` ◌ ◌ # _ : *
// \ | + ◌ ◌ ◌ ◌ = & %
// ◌ ◌ ◌ ◌
// Left hand symbols
COMB(at, UK_AT, LTHUMB1, HM_A)
COMB(backslash, UK_BSLS, LTHUMB1, KC_Z)
COMB(dash, KC_MINS, LTHUMB1, HM_S)
COMB(dollar, KC_DLR, LTHUMB1, KC_P)
COMB(grave, KC_GRV, LTHUMB1, HM_T)
COMB(lparen, KC_LPRN, LTHUMB1, KC_W)
COMB(pipe, UK_PIPE, LTHUMB1, KC_X)
COMB(plus, KC_PLUS, LTHUMB1, KC_C)
COMB(rparen, KC_RPRN, LTHUMB1, KC_F)
COMB(semicolon, KC_SCLN, LTHUMB1, HM_R)
COMB(tilde, UK_TILD, LTHUMB1, KC_Q)
// Right hand symbols
COMB(ampersand, KC_AMPR, RTHUMB1, KC_DOT)
COMB(asterix, KC_ASTR, RTHUMB1, HM_O)
COMB(circumflex, KC_CIRC, RTHUMB1, KC_QUOT)
COMB(colon, KC_COLN, RTHUMB1, HM_I)
COMB(equals, KC_EQL, RTHUMB1, KC_COMM)
COMB(exclamation, KC_EXLM, RTHUMB1, KC_L)
COMB(hash, UK_HASH, RTHUMB1, HM_N)
COMB(lbracket, KC_LBRC, RTHUMB1, KC_U)
COMB(percent, KC_PERC, RTHUMB1, KC_SLASH)
COMB(rbracket, KC_RBRC, RTHUMB1, KC_Y)
COMB(underscore, KC_UNDS, RTHUMB1, HM_E)
// Other keys
COMB(delete, KC_DEL, LTHUMB1, RTHUMB1)
COMB(tab, KC_TAB, KC_W, KC_F)
COMB(capsword, CAPSWORD, HM_R, HM_I)
TOGG(mouseon, MOUSE, LTHUMB1, LTHUMB2)
TOGG(mouseoff, MOUSE, KC_BTN1, KC_BTN2)
// Common patterns
SUBS(brackets, "[]" SS_TAP(X_LEFT), RTHUMB1, KC_Y, KC_U)
SUBS(codefence, "```", LTHUMB1, HM_S, HM_T)
SUBS(doubledash, "--", LTHUMB1, HM_R, HM_S)
SUBS(doublepipe, "|| ", LTHUMB1, KC_X, KC_C)
SUBS(doubleamp, "&& ", RTHUMB1, KC_COMM, KC_DOT)
SUBS(parens, "()" SS_TAP(X_LEFT), LTHUMB1, KC_W, KC_F)
SUBS(shellcmd, "$()" SS_TAP(X_LEFT), LTHUMB1, KC_P, KC_W, KC_F)