2 #include "action_layer.h"
5 extern keymap_config_t keymap_config;
7 // Each layer gets a name for readability, which is then used in the keymap matrix below.
8 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
9 // Layer names don't all need to be of the same length, obviously, and you can also skip them
10 // entirely and just use numbers.
14 // Macro name shortcuts
17 // Fillers to make layering more clear
18 #define _______ KC_TRNS
22 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 KEYMAP(KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \
25 KC_KP_4, KC_KP_5, KC_KP_6, \
26 KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, \
30 const uint16_t PROGMEM fn_actions[] = {
34 void persistent_default_layer_set(uint16_t default_layer) {
35 eeconfig_update_default_layer(default_layer);
36 default_layer_set(default_layer);
39 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
43 if (record->event.pressed) {
44 persistent_default_layer_set(1UL<<_NP);