Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Colemak Mod-DH Layer #2

Merged
merged 2 commits into from
Aug 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions keyboards/crkbd/keymaps/jussaw/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

enum layers {
_QWERTY,
_COLEMAKDH,
_LOWER,
_UPPER,
_ADJUST,
_GAME
_GAME,
};

enum custom_keycodes {
QWERTY = SAFE_RANGE,
COLEMAKDH,
LOWER,
UPPER,
ADJUST,
GAME
GAME,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand All @@ -50,7 +52,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LALT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
KC_LCTL, MO(1), KC_SPC, KC_RSFT, MO(2), KC_RGUI
KC_LCTL, MO(2), KC_SPC, KC_RSFT, MO(3), KC_RGUI
),

//,-----------------------------------------------------. ,-----------------------------------------------------.
//| Tab | Q | W | F | P | B | | J | L | U | Y | ; | Bksp |
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
//| Esc | A | R | S | T | G | | M | N | E | I | O | "" |
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
//| Alt | Z | X | C | D | V | | K | H | , | . | / | Enter |
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
// | Ctrl | Lower | Space Shift | Upper | GUI |
//`--------------------------' `--------------------------'
[_COLEMAKDH] = LAYOUT_split_3x6_3(
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
KC_LALT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
KC_LCTL, MO(2), KC_SPC, KC_RSFT, MO(3), KC_RGUI
),

//,-----------------------------------------------------. ,-----------------------------------------------------.
Expand All @@ -66,7 +84,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_GRV, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TILD, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
KC_LCTL, KC_TRNS, KC_SPC, KC_RSFT, MO(3), KC_RALT
KC_LCTL, KC_TRNS, KC_SPC, KC_RSFT, MO(4), KC_RALT
),

//,-----------------------------------------------------. ,-----------------------------------------------------.
Expand All @@ -75,18 +93,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//| Del | | | | | | | | Left | Down | Up | Right | "" |
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
//| Alt | | | | | | | | Home |Pg Down | Pg Up | End | Enter |
//|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------|
//|--------+--------+--------+--------+--------+--------+---q-----| |--------+--------+--------+--------+--------+--------+--------|
// | Ctrl | Adjust | Space Shift | Trans | GUI |
//`--------------------------' `--------------------------'
[_UPPER] = LAYOUT_split_3x6_3(
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP,KC_RIGHT, KC_QUOT,
KC_LALT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_ENT,
KC_LCTL, MO(3), KC_SPC, KC_RSFT, KC_TRNS, KC_RGUI
KC_LCTL, MO(4), KC_SPC, KC_RSFT, KC_TRNS, KC_RGUI
),

//,-----------------------------------------------------. ,-----------------------------------------------------.
//| Reset | | | | | TG(4) | | Play | Mouse1 | Mouse2 | Mouse4 | Mouse5 |Ms Acc1 |
//| Reset | DF(0) | DF(5) | | | TG(4) | | Play | Mouse1 | Mouse2 | Mouse4 | Mouse5 |Ms Acc1 |
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
//| RGB | Hue+ | Sat+ |Bright+ |Effect- |AG_SWAP | | Vol+ |Ms Left |Ms Down | Ms Up |Ms Right|Ms Acc2 |
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
Expand All @@ -95,7 +113,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// | Ctrl | Lower | Space Shift | Upper | GUI |
//`--------------------------' `--------------------------'
[_ADJUST] = LAYOUT_split_3x6_3(
RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TG(4), KC_MPLY, KC_BTN1, KC_BTN2, KC_BTN4, KC_BTN5, KC_ACL0,
RESET, DF(0), DF(1), XXXXXXX, XXXXXXX, TG(5), KC_MPLY, KC_BTN1, KC_BTN2, KC_BTN4, KC_BTN5, KC_ACL0,
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, AG_SWAP, KC_VOLU, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ACL1,
RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, AG_NORM, KC_VOLD, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_ACL2,
XXXXXXX, KC_TRNS, XXXXXXX, XXXXXXX, KC_TRNS, XXXXXXX
Expand All @@ -115,7 +133,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_QUOT, KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
KC_ENT, KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
KC_ESC, KC_LALT, KC_SPC, XXXXXXX, XXXXXXX, TG(4)
)
),
};

#ifdef OLED_DRIVER_ENABLE
Expand Down