aboutsummaryrefslogtreecommitdiff
path: root/qmk/keyboards/sofle_choc/keymaps/custom/keycodes.h
blob: c37a56383ae3127faf3b34d1727107d1cd4530c1 (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
#pragma once
#include QMK_KEYBOARD_H
#include "action.h"

enum {
  // Transform the key W into SHIFT or CAPSLOCK
  TD_CAPSLOCK,
  TD_PRC,
  TD_LAYER_KEYPAD,
  TD_LAYER_ARROW,
  TD_ENTER,
  TD_KEY_F,
  TD_KEY_J,
};

enum {
  LAYER_BASE,
  LAYER_KEYPAD, // Layer used mainly on the left side of the keyboard
  LAYER_ARROW,  // Layer used on the right side of the keyboard
};

#define KEY_APP LT(0, KC_APP)
#define KEY_LOK TD(TD_CAPSLOCK)
#define KEY_PRC TD(TD_PRC)
#define AL_ENT  MT(MOD_RALT, KC_ENT)
#define AL_SPC  MT(MOD_LALT, KC_SPC)
#define KEY_INS MT(MOD_RGUI, KC_INS)
#define TD_ENTR TD(TD_ENTER)
#define KEY_F   TD(TD_KEY_F)
#define KEY_J   TD(TD_KEY_J)

#define LY_KEYPAD TD(TD_LAYER_KEYPAD)
#define LY_ARROW  TD(TD_LAYER_ARROW)


// In the number layout, I keep the mod-tap modifiers applies to the middle
// letters :
//
#define KEY_6      MT(MOD_LCTL, KC_P6)
#define KEY_DOWN   MT(MOD_RCTL, KC_DOWN)
#define KEY_PGDN   MT(MOD_RSFT, KC_PGDN)


bool keycodes_process_record(uint16_t keycode, keyrecord_t *record);