-
Notifications
You must be signed in to change notification settings - Fork 1
/
keymap.h
44 lines (39 loc) · 877 Bytes
/
keymap.h
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
#pragma once
#include QMK_KEYBOARD_H
#include "keymap_uk.h"
// Friendly layer names
enum layers {
BASE,
NUM,
NAV,
FN1,
FN2,
MOUSE,
};
// Keycodes for use in macros
enum custom_keycodes {
CAPSWORD = SAFE_RANGE,
};
// Thumb keys
#define LTHUMB1 LT(NUM, KC_SPC)
#define LTHUMB2 MT(MOD_LSFT, KC_ESC)
#define RTHUMB1 LT(NAV, KC_BSPC)
#define RTHUMB2 MT(MOD_RSFT, KC_ENT)
// BASE home row modifiers
#define HM_A LALT_T(KC_A)
#define HM_R LSFT_T(KC_R)
#define HM_S LCTL_T(KC_S)
#define HM_T LGUI_T(KC_T)
#define HM_N LGUI_T(KC_N)
#define HM_E LCTL_T(KC_E)
#define HM_I LSFT_T(KC_I)
#define HM_O LALT_T(KC_O)
// Home row modifiers in layers
#define HM_PNKY KC_LALT
#define HM_LEFT LSFT_T(KC_LEFT)
#define HM_DOWN LCTL_T(KC_DOWN)
#define HM_RGHT LGUI_T(KC_RIGHT)
#define HM_4 LGUI_T(KC_4)
#define HM_5 LCTL_T(KC_5)
#define HM_6 LSFT_T(KC_6)
#define HM_0 LALT_T(KC_0)