]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/nerd/keymap_ansi150.c
645ad6a83d0e0960fa4cff34c8a2fe7d5fa40666
[qmk_firmware.git] / keyboard / nerd / keymap_ansi150.c
1 #include "keymap_common.h"
2 #include "action_layer.h"
3 #include "backlight.h"
4
5 const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6     /* Layer 0: Default */
7     KEYMAP_ANSI150(GRV, 1,   2,   3,   4,   5,   6,   7,   8,   9,   0,   MINS,EQL, BSPC, \
8                    TAB, Q,   W,   E,   R,   T,   Y,   U,   I,   O,   P,   LBRC,RBRC,BSLS, \
9                    ESC, A,   S,   D,   F,   G,   H,   J,   K,   L,   SCLN,QUOT,     ENT,  \
10                    LSFT,     Z,   X,   C,   V,   B,   N,   M,   COMM,DOT, SLSH,RSFT,      \
11                    LCTL,LGUI,LALT,          SPC,                          RALT,FN0 ,RCTL),
12     /* Layer 1: Arrow keys */
13     KEYMAP_ANSI150(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
14                    TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
15                    TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS, \
16                    UP,       TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,      \
17                    LEFT,DOWN,RGHT,          TRNS,                         TRNS,TRNS,TRNS),
18     /* Layer 2: Space Fn */
19     KEYMAP_ANSI150(TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
20                    TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
21                    TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,     TRNS, \
22                    TRNS,     TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,      \
23                    TRNS,TRNS,TRNS,          FN1,                          TRNS,TRNS,TRNS),
24     /* Layer 3: Functions */
25     KEYMAP_ANSI150(SLEP,F1,  F2,  F3,  F4,  F5,  F6,  F7,  F8,  F9,  F10, F11, F12, FN4,  \
26                    TRNS,TRNS,UP,  END, PSCR,SLCK,BRK, TRNS,INS, HOME,TRNS,VOLD,VOLU,FN5,  \
27                    CAPS,LEFT,DOWN,RGHT,PGDN,TRNS,LEFT,DOWN,UP  ,RGHT,TRNS,TRNS,     TRNS, \
28                    TRNS,     TRNS,DEL, TRNS,TRNS,PGUP,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,      \
29                    MPRV,MPLY,MNXT,          TRNS,                          FN2,TRNS,FN3),
30 };
31
32 const uint16_t PROGMEM fn_actions[] = {
33     [0] = ACTION_LAYER_MOMENTARY(3),                // Switch to function layer
34     [1] = ACTION_LAYER_TAP_KEY(3, KC_SPACE),        // Switch to function layer (Space Fn)
35     [2] = ACTION_LAYER_TOGGLE(1),                   // Toggle "Arrow keys" layer
36     [3] = ACTION_LAYER_TOGGLE(2),                   // Toggle "Space fn" layer
37     [4] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_SWITCH), // Toggle switch leds
38     [5] = ACTION_BACKLIGHT_LEVEL(BACKLIGHT_PCB),    // Toggle pcb leds
39 };