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

enum {
  // Transform the key W into SHIFT or CAPSLOCK
  TD_CAPSLOCK,
  // Transform the key E into È
  TD_EE,
  TD_PRC,
  TD_LAYER_KEYPAD,
  TD_LAYER_ARROW,
  TD_ENTER,
};

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
  LAYER_DIACRITIC,
};

#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_F   MT(MOD_LCTL, KC_F)
#define KEY_J   MT(MOD_RCTL, KC_J)
#define KEY_INS MT(MOD_RGUI, KC_INS)
#define TD_ENTR TD(TD_ENTER)

// 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);