summaryrefslogtreecommitdiffstats
path: root/keyboards/9key/keymaps/default/keymap.c
blob: 23364e8537a90d7b412e0411ae5c81c2d942ccc5 (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
43
44
45
46
47
#include "9key.h"

// Tap Dance Declarations
enum {
  ENT_5 = 0
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* LAYER 0
 * ,-----------------.
 * |  1  |  2  |  3  |
 * |-----+-----+-----|
 * |  4  |5/ENT|  6  | Dbl Tap 5 for Enter
 * |-----+-----+-----|
 * |  7  |  8  | FN  | 
 * `-----------------'
 */
[0] = KEYMAP( \
  KC_1, KC_2, KC_3, \
  KC_4, TD(ENT_5), KC_6, \
  KC_7, KC_8, MO(1) \
),

/* LAYER 1
 * ,-----------------.
 * |  9  |  0  |  -  |
 * |-----+-----+-----|
 * |  +  |  *  |  /  |
 * |-----+-----+-----|
 * | F1  | F2  |     |
 * `-----------------'
 */
[1] = KEYMAP( \
  KC_9,    KC_0,    KC_MINS, \
  KC_PLUS, KC_ASTR, KC_SLSH, \
  KC_F1,   KC_F2,   KC_TRNS  \
)

};

qk_tap_dance_action_t tap_dance_actions[] = {
  [ENT_5] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT)
};

void matrix_init_user(void) {
}