]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/fourier/keymaps/xyverz/keymap.c
Updates to Xyverz keymaps (#3315)
[qmk_firmware.git] / keyboards / fourier / keymaps / xyverz / keymap.c
1 #include QMK_KEYBOARD_H
2 #include "action_layer.h"
3 #include "eeconfig.h"
4
5 extern keymap_config_t keymap_config;
6
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.
11 #define _BASE 0
12 #define _FN1 1
13 #define _FN2 2
14
15 enum custom_keycodes {
16   QWERTY = SAFE_RANGE,
17 };
18
19 #define KC_ KC_TRNS
20 #define _______ KC_TRNS
21 #define XXXXXXX KC_NO
22 #define KC_FN1 MO(_FN1)
23 #define KC_FN2 MO(_FN2)
24 #define KC_ESFN1 LT(_FN1, KC_ESC)
25 #define KC_SPFN1 LT(_FN1, KC_SPACE)
26 #define KC_SPFN2 LT(_FN2, KC_SPACE)
27 #define KC_BSFN1 LT(_FN1, KC_BSPC)
28 #define KC_BSFN2 LT(_FN2, KC_BSPC)
29 #define KC_RST RESET
30 #define KC_DBUG DEBUG
31 #define KC_RTOG RGB_TOG
32 #define KC_RMOD RGB_MOD
33 #define KC_RHUI RGB_HUI
34 #define KC_RHUD RGB_HUD
35 #define KC_RSAI RGB_SAI
36 #define KC_RSAD RGB_SAD
37 #define KC_RVAI RGB_VAI
38 #define KC_RVAD RGB_VAD
39
40 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41   [_BASE] = LAYOUT_kc(
42  //,----+----+----+----+----+----|----+----+----+----+----+----+----.
43     TAB ,QUOT,COMM,DOT , P  , Y  , F  , G  , C  , R  , L  ,SLSH,MINS,
44  //|----`----`----`----`----`----|----`----`----`----`----`----`----|
45     ESC  , A  , O  , E  , U  , I  , D  , H  , T  , N  , S  , ENTER  ,
46  //|-----`----`----`----`----`----|----`----`----`----`----`--------|
47     LSFT   ,SCLN, Q  , J  , K  , X  , B  , M  , W  , V  , Z  , RSFT ,
48  //|-------`----`----`----`----`----|----`----`----`----`----`------|
49     LCTL ,LALT,LGUI ,FN2 ,  BSPC  ,   SPC  , FN1 ,RGUI ,RALT , RCTL 
50  //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
51   ),
52
53   [_FN1] = LAYOUT_kc(
54  //,----+----+----+----+----+----|----+----+----+----+----+----+----.
55     GRV , 1  , 2  , 3  , 4  , 5  , 6  , 7  , 8  , 9  , 0  ,MINS,EQL ,
56  //|----`----`----`----`----`----|----`----`----`----`----`----`----|
57     CAPS ,RHUI,RSAI,RVAI,VOLU,LBRC,RBRC,    ,    ,    ,SCLN,        ,
58  //|-----`----`----`----`----`----|----`----`----`----`----`--------|
59     RMOD   ,RHUD,RSAD,RVAD,VOLD,LCBR,RCBR,    ,    ,    , UP ,      ,
60  //|-------`----`----`----`----`----|----`----`----`----`----`------|
61     RTOG ,    ,     ,    ,   DEL  ,  INS   ,     ,LEFT ,DOWN , RGHT 
62  //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
63   ),
64
65   [_FN2] = LAYOUT_kc(
66  //,----+----+----+----+----+----|----+----+----+----+----+----+----.
67     TILD,EXLM, AT ,HASH,DLR ,PERC,CIRC,AMPR,ASTR,LPRN,RPRN,UNDS,PLUS,
68  //|----`----`----`----`----`----|----`----`----`----`----`----`----|
69     CAPS ,    ,    ,INS ,PGUP,HOME, F1 , F2 , F3 , F4 , F5 ,   F6   ,
70  //|-----`----`----`----`----`----|----`----`----`----`----`--------|
71            ,    ,    ,DEL ,PGDN,END , F7 , F8 , F9 ,F10 ,F11 , F12  ,
72  //|-------`----`----`----`----`----|----`----`----`----`----`------|
73          ,    ,     ,    ,  DEL   ,  INS   ,     ,     ,     ,      
74  //`-----+----+-----+----+--------|--------+-----+-----+-----+------'
75   )
76
77 };
78
79 void matrix_init_user(void) {
80    // This will disable the red LEDs on the ProMicros
81    DDRD &= ~(1<<5);
82    PORTD &= ~(1<<5);
83    DDRB &= ~(1<<0);
84    PORTB &= ~(1<<0);
85 };
86