summaryrefslogtreecommitdiff
path: root/keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c
blob: fdbc3c8a3917071b36dc1f169a2ed288e54f9dc3 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include QMK_KEYBOARD_H

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

//Tap Dance Definitions
tap_dance_action_t tap_dance_actions[] = {
  //Tap once for Esc, twice for Caps Lock
  [TD_DOT_COMMAS]  = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA)
// Other declarations would go here, separated by commas, if you have them
};

//In Layer declaration, add tap dance item in place of a key code



const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  /*
   * ,-------------------.
   * |bcsp| /  | *  | -  |
   * |----|----|----|----|
   * | 7  | 8  | 9  |    |
   * |----|----|----| +  |
   * | 4  | 5  | 6  |    |
   * |----|----|----|----|
   * | 1  | 2  | 3  |    |
   * |----|----|----| En |
   * |   FN/0  | .  |    |
   * `-------------------'
   */

  [0] = LAYOUT_numpad_5x4(
    KC_BSPC, KC_PSLS, KC_PAST, KC_PMNS, 
    KC_P7,   KC_P8,   KC_P9,   
    KC_P4,   KC_P5,   KC_P6,   KC_PPLS, 
    KC_P1,   KC_P2,   KC_P3,   
    LT(1, KC_P0), TD(TD_DOT_COMMAS),  KC_PENT  
  ),
  /*
   * ,-------------------.
   * | F10| F11| F12| -  |
   * |----|----|----|----|
   * | F7 | F8 | F9 |    |
   * |----|----|----| vol|
   * | F4 | F5 | F6 |  + |
   * |----|----|----|----|
   * | F1 | F2 | F3 | vol|
   * |----|----|----|  - |
   * |    FN   | .  |    |
   * `-------------------'
   */
  [1] = LAYOUT_numpad_5x4(
    KC_F10, KC_F11, KC_F12, KC_NO, 
    KC_F7,   KC_F8,   KC_F9,   
    KC_F4,   KC_F5,   KC_F6, KC_VOLU, 
    KC_F1,   KC_F2,   KC_F3,   
    KC_NO, KC_PDOT,  KC_VOLD  
  )
};