51 lines
1.9 KiB
C
51 lines
1.9 KiB
C
|
#include "actionmap.h"
|
||
|
#include "action_code.h"
|
||
|
#include "actionmap_common.h"
|
||
|
|
||
|
|
||
|
/*
|
||
|
* Actions
|
||
|
*/
|
||
|
#define AC_BLD ACTION_BACKLIGHT_DECREASE()
|
||
|
#define AC_BLI ACTION_BACKLIGHT_INCREASE()
|
||
|
#define AC_TL1 ACTION_LAYER_TAP_KEY(1, KC_SPACE)
|
||
|
#define AC_TL2 ACTION_LAYER_TAP_KEY(2, KC_BSPACE)
|
||
|
#define AC_TL3 ACTION_LAYER_TAP_KEY(3, KC_C)
|
||
|
#define AC_TL4 ACTION_LAYER_TAP_KEY(4, KC_V)
|
||
|
#define AC_TL5 ACTION_LAYER_TAP_KEY(5, KC_B)
|
||
|
#define AC_TM1 ACTION_MODS_TAP_KEY(MOD_RSFT, KC_ENT)
|
||
|
#define AC_TM2 ACTION_MODS_TAP_KEY(MOD_LCTL, KC_Z)
|
||
|
#define AC_TM3 ACTION_MODS_TAP_KEY(MOD_LALT, KC_X)
|
||
|
#define AC_TM4 ACTION_MODS_TAP_KEY(MOD_RALT, KC_N)
|
||
|
#define AC_TM5 ACTION_MODS_TAP_KEY(MOD_RCTL, KC_M)
|
||
|
#define AC_S01 ACTION_MODS_KEY(MOD_LSFT, KC_1)
|
||
|
#define AC_S02 ACTION_MODS_KEY(MOD_LSFT, KC_2)
|
||
|
#define AC_S03 ACTION_MODS_KEY(MOD_LSFT, KC_3)
|
||
|
#define AC_S04 ACTION_MODS_KEY(MOD_LSFT, KC_4)
|
||
|
#define AC_S05 ACTION_MODS_KEY(MOD_LSFT, KC_5)
|
||
|
#define AC_S06 ACTION_MODS_KEY(MOD_LSFT, KC_6)
|
||
|
#define AC_S07 ACTION_MODS_KEY(MOD_LSFT, KC_7)
|
||
|
#define AC_S08 ACTION_MODS_KEY(MOD_LSFT, KC_8)
|
||
|
#define AC_S09 ACTION_MODS_KEY(MOD_LSFT, KC_9)
|
||
|
#define AC_S10 ACTION_MODS_KEY(MOD_LSFT, KC_0)
|
||
|
#define AC_S11 ACTION_MODS_KEY(MOD_LSFT, KC_MINS)
|
||
|
#define AC_S12 ACTION_MODS_KEY(MOD_LSFT, KC_EQL)
|
||
|
#define AC_S13 ACTION_MODS_KEY(MOD_LSFT, KC_LBRC)
|
||
|
#define AC_S14 ACTION_MODS_KEY(MOD_LSFT, KC_RBRC)
|
||
|
#define AC_S15 ACTION_MODS_KEY(MOD_LSFT, KC_BSLS)
|
||
|
#define AC_S16 ACTION_MODS_KEY(MOD_LSFT, KC_COMM)
|
||
|
#define AC_S17 ACTION_MODS_KEY(MOD_LSFT, KC_DOT)
|
||
|
#define AC_S18 ACTION_MODS_KEY(MOD_LSFT, KC_SLSH)
|
||
|
#define AC_S19 ACTION_MODS_KEY(MOD_LSFT, KC_SCLN)
|
||
|
#define AC_S20 ACTION_MODS_KEY(MOD_LSFT, KC_QUOT)
|
||
|
|
||
|
const action_t PROGMEM actionmaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||
|
ACTIONMAP(
|
||
|
A, B, C,
|
||
|
G, H, I,
|
||
|
|
||
|
D, E, F,
|
||
|
J, K, L),
|
||
|
};
|
||
|
|