aboutsummaryrefslogtreecommitdiffstats
path: root/users/rs/rs.h
blob: 722d6ed19e3e05744d25e65a3b24cdaa30f915bb (plain)
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
#pragma once
#include "quantum.h"

enum layers {
  _QWERTY,
  _CODE,
  _FN,
};

enum custom_keycodes {
  CODE = SAFE_RANGE,
  FN,
  LPLT,
  RPGT,
  NEQL,
#ifdef RGBLIGHT_ENABLE
  RGBRST,
#endif
};

#define KC_ KC_TRNS

#define KC_ESCC MT(MOD_LCTL, KC_ESC)
#define KC_ENTS MT(MOD_LSFT, KC_ENT)
#define KC_LTGT LTGT // > or < with shift
#define KC_LPLT LPLT // ( or < with shift
#define KC_RPGT RPGT // ) or > with shift
#define KC_NEQL NEQL // !=
#define KC_CODE MO(_CODE)
#define KC_BCOD LT(_CODE, KC_BSPC)
#define KC_FN   MO(_FN)
#define KC_RST  RESET
#define KC_CTRA LCTL(KC_A)
#define KC_CTRE LCTL(KC_E)
#define KC_BLTG BL_TOGG
#define KC_BLUP BL_INC
#define KC_BLDN BL_DEC
#define KC_BLBR BL_BRTG

#ifdef RGBLIGHT_ENABLE
#define KC_LRST RGBRST
#define KC_LTOG RGB_TOG
#define KC_LHUI RGB_HUI
#define KC_LHUD RGB_HUD
#define KC_LSAI RGB_SAI
#define KC_LSAD RGB_SAD
#define KC_LVAI RGB_VAI
#define KC_LVAD RGB_VAD
#define KC_LMOD RGB_MOD
#endif