summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/old_keymap_files/common_keymaps/keymap_sean.c
blob: 10a112986e27f23efcf848000880b5209b3d423b (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#define KC_RESET 0x5000
#include "keymap_common.h"

enum planck_layers {
  _DVRK,
  _LOWER,
  _RAISE,
  _ADJUST
};

#define KC_LOWR MO(_LOWER)
#define KC_RAIS MO(_RAISE)
#define KC_ADJS MO(_ADJUST)

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

/* Dvorak
 * ,-----------------------------------------------------------------------------------.
 * |   "  |   ,  |   .  |   P  |   Y  |   /  |   =  |   F  |   G  |   C  |   R  |   L  |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |   A  |   O  |   E  |   U  |   I  | ESC  | BSPC |   D  |   H  |   T  |   N  |   S  |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |   ;  |   Q  |   J  |   K  |   X  | TAB  | ENT  |   B  |   M  |   W  |   V  |   Z  |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * | Sft  | Ctl  | Alt  | Gui  |Lower |    Space    |Raise |   <  |   v  |   ^  |   >  |
 * `-----------------------------------------------------------------------------------'
 */
    [_DVRK] = KEYMAP( 
      QUOT, COMM,  DOT,    P,    Y, SLSH,  EQL,    F,    G,    C,    R,    L,
         A,    O,    E,    U,    I,  ESC, BSPC,    D,    H,    T,    N,    S,
      SCLN,    Q,    J,    K,    X,  TAB,  ENT,    B,    M,    W,    V,    Z,
      LSFT, LCTL, LALT, LGUI,  LOWR, SPC,        RAIS,LEFT, DOWN,   UP, RGHT),

/* Lower
 * ,-----------------------------------------------------------------------------------.
 * | F1   |  F2  |  F3  |  F4  |  F5  |  {   |  }   |  F6  |  F7  |  F8  |  F9  | F10  | 
 * |------+------+------+------+------+-------------+------+------+------+------+------|
 * |  1   |   2  |   3  |   4  |   5  |  [   |  ]   |   6  |   7  |   8  |   9  |  0   |
 * |------+------+------+------+------+------|------+------+------+------+------+------|
 * |   ~  |   |  |   `  |   -  |   _  | INS  | DEL  |   (  |   )  |   +  |   =  |  \   |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * | Sft  | Ctl  | Alt  | Gui  |Lower |    Space    |Raise |      | PgDn | PgUp | End  |
 * `-----------------------------------------------------------------------------------'
 */
    [_LOWER] = KEYMAP( /* fn1 lower */
        F1,   F2,   F3,   F4,   F5, FN26, FN27,   F6,   F7,   F8,   F9,  F10,
         1,    2,    3,    4,    5, LBRC, RBRC,    6,    7,    8,    9,    0,
       FN23, FN25,  GRV,MINS, FN24, INS,   DEL, FN19, FN20, FN22,  EQL, BSLS,
      TRNS, TRNS, TRNS, TRNS, TRNS, TRNS,        ADJS,HOME, PGDN, PGUP,  END),

/* Raise
 * ,-----------------------------------------------------------------------------------.
 * | F11  |  F12 |  F13 |  F14 |  F15 |  -   |  _   |  F16 |  F17 |  F18 |  F19 | F20  | 
 * |------+------+------+------+------+-------------+------+------+------+------+------|
 * |  !   |   @  |   #  |   $  |   %  |      |      |   ^  |   &  |   *  |   (  |  )   |
 * |------+------+------+------+------+-------------+------+------+------+------+------|
 * |      |      |      |      |      |      |      |      |      |      |      |      |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * | CAPS |      |      |      |      |             |      |      |      |      |      |
 * `-----------------------------------------------------------------------------------'
 */
    [_RAISE] = KEYMAP( /* fn2 raise */
       F11,  F12,  F13,  F14,  F15,MINS,  FN24,  F16,  F17,  F18,  F19,  F20,
      FN11, FN12, FN13, FN14, FN15,  NO,    NO, FN16, FN17, FN18, FN19, FN20,
       PWR, EJCT,   NO,   NO,   NO,  NO,    NO,   NO,   NO,   NO,   NO,   NO,
      CAPS, TRNS, TRNS, TRNS,  ADJS,TRNS,        RAIS,  NO,   NO,   NO,   NO),
/* Adjust (Lower + Raise or SLower + SRaise)
 * ,-----------------------------------------------------------------------------------.
 * |      | Reset|      |      |      |      |      |      |      |      |      |      |
 * |------+------+------+------+------+-------------+------+------+------+------+------|
 * | PWR  | EJCT |      |      |      |      |      | CAPS |      |      |      |      |
 * |------+------+------+------+------+------|------+------+------+------+------+------|
 * |DVORAK|      |      |      |      |      |      |      |      |      |      |      |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |      |      |      |      |             |      |      |      |      |      |      |
 * `-----------------------------------------------------------------------------------'
 */
[_ADJUST] = KEYMAP( 
         NO, RESET, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,
         PWR, EJCT, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,
         CAPS,  NO, NO, NO, NO, NO, NO, NO, NO, NO, NO, NO,
           NO,  NO, NO, NO, NO, NO,     NO, NO, NO, NO, NO),
};

const uint16_t PROGMEM fn_actions[] = {
    [3] = ACTION_DEFAULT_LAYER_SET(_DVRK), 
    [11] = ACTION_MODS_KEY(MOD_LSFT, KC_1),     //!
    [12] = ACTION_MODS_KEY(MOD_LSFT, KC_2),     //@
    [13] = ACTION_MODS_KEY(MOD_LSFT, KC_3),     //#
    [14] = ACTION_MODS_KEY(MOD_LSFT, KC_4),     //$
    [15] = ACTION_MODS_KEY(MOD_LSFT, KC_5),     //%
    [16] = ACTION_MODS_KEY(MOD_LSFT, KC_6),     //^
    [17] = ACTION_MODS_KEY(MOD_LSFT, KC_7),     //&
    [18] = ACTION_MODS_KEY(MOD_LSFT, KC_8),     //*
    [19] = ACTION_MODS_KEY(MOD_LSFT, KC_9),     //(
    [20] = ACTION_MODS_KEY(MOD_LSFT, KC_0),     //)
    [21] = ACTION_MODS_KEY(MOD_LSFT, KC_SLSH),  //?
    [22] = ACTION_MODS_KEY(MOD_LSFT, KC_EQL),   //+
    [23] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),   //~
    [24] = ACTION_MODS_KEY(MOD_LSFT, KC_MINS),  //_
    [25] = ACTION_MODS_KEY(MOD_LSFT, KC_BSLS),  //|
    [26] = ACTION_MODS_KEY(MOD_LSFT, KC_LBRC),  //{
    [27] = ACTION_MODS_KEY(MOD_LSFT, KC_RBRC),  //}
    [28] = ACTION_MODS_KEY(MOD_LSFT | MOD_RSFT, KC_PAUSE),
};