Browse Source

[Keymap] Add planck/scottzach1 keymap (#17083)

pull/17345/head
Zac Scott 1 year ago
committed by GitHub
parent
commit
93c3a959a7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 221 additions and 0 deletions
  1. +35
    -0
      keyboards/planck/keymaps/scottzach1/config.h
  2. +110
    -0
      keyboards/planck/keymaps/scottzach1/keymap.c
  3. +76
    -0
      keyboards/planck/keymaps/scottzach1/readme.md

+ 35
- 0
keyboards/planck/keymaps/scottzach1/config.h View File

@ -0,0 +1,35 @@
// Copyright 2022 Zac Scott (@scottzach1)
// SPDX-License-Identifier: GPL-2.0
#pragma once
#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(PLANCK_SOUND)
// #define STARTUP_SONG SONG(NO_SOUND)
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
SONG(COLEMAK_SOUND), \
SONG(DVORAK_SOUND) \
}
#endif
/*
* MIDI options
*/
/* enable basic MIDI features:
- MIDI notes can be sent when in Music mode is on
*/
#define MIDI_BASIC
/* enable advanced MIDI features:
- MIDI notes can be added to the keymap
- Octave shift and transpose
- Virtual sustain, portamento, and modulation wheel
- etc.
*/
//#define MIDI_ADVANCED
// Most tactile encoders have detents every 4 stages
#define ENCODER_RESOLUTION 4

+ 110
- 0
keyboards/planck/keymaps/scottzach1/keymap.c View File

@ -0,0 +1,110 @@
// Copyright 2022 Zac Scott (@scottzach1)
// SPDX-License-Identifier: GPL-2.0
#include QMK_KEYBOARD_H
enum planck_layers {
_COLEMAK,
_LOWER,
_RAISE,
_FUNCTION,
_DEBUG
};
#define xxxxxxx KC_NO
#define LOWER MO(_LOWER)
#define RAISE MO(_RAISE)
#define FUNCT MO(_FUNCTION)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Colemak Mod-DH
* ,-----------------------------------------------------------------------------------------------------------.
* | Tab | Q | W | F | P | B | J | L | U | Y | ; | ' |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Func | A | R | S | T | G | M | N | E | I | O | Enter |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Shift | Z | X | C | D | V | K | H | , | . | / | \ |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Ctrl | GUI | Alt | Shift | Space | Lower | Raise | Bkspc | Shift | - | = | Ctrl |
* `-----------------------------------------------------------------------------------------------------------'
*/
[_COLEMAK] = LAYOUT_ortho_4x12(
KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_QUOT,
FUNCT, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS,
KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, KC_SPC, LOWER, RAISE, KC_BSPC, KC_RSFT, KC_MINS, KC_EQL, KC_RCTL
),
/* Lower
* ,-----------------------------------------------------------------------------------------------------------.
* | Tab | | { | } | | | ` | 7 | 8 | 9 | 0 | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Func | | ( | ) | | | * | 4 | 5 | 6 | - | Enter |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Shift | | [ | ] | | | / | 1 | 2 | 3 | + | = |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Ctrl | GUI | Alt | Shift | Space | Lower | Func | Bkspc | 0 | . | = | Ctrl |
* `-----------------------------------------------------------------------------------------------------------'
*/
[_LOWER] = LAYOUT_ortho_4x12(
_______, xxxxxxx, KC_LCBR, KC_RCBR, xxxxxxx, xxxxxxx, KC_GRV, KC_7, KC_8, KC_9, KC_0, _______,
_______, xxxxxxx, KC_LPRN, KC_RPRN, xxxxxxx, xxxxxxx, KC_ASTR, KC_4, KC_5, KC_6, KC_MINS, _______,
_______, xxxxxxx, KC_LBRC, KC_RBRC, xxxxxxx, xxxxxxx, KC_SLSH, KC_1, KC_2, KC_3, KC_PLUS, KC_EQL,
_______, _______, _______, _______, _______, _______, FUNCT, _______, KC_0, KC_DOT, _______, _______
),
/* Raise
* ,-----------------------------------------------------------------------------------------------------------.
* | Tab | | { | } | | | | Pg_Up | Up | Pg_Dn | | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Func | | ( | ) | | | Home | Left | Down | Right | Del | Ent er |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Shift | | [ | ] | | | | End | Ins | Caps | | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | Ctrl | GUI | Alt | Shift | Space | Func | Raise | Bkspc | | | | Ctr l |
* `-----------------------------------------------------------------------------------------------------------'
*/
[_RAISE] = LAYOUT_ortho_4x12(
_______, xxxxxxx, KC_LCBR, KC_RCBR, xxxxxxx, xxxxxxx, xxxxxxx, KC_PGUP, KC_UP, KC_PGDN, _______, _______,
_______, xxxxxxx, KC_LPRN, KC_RPRN, xxxxxxx, xxxxxxx, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_DEL , _______,
_______, xxxxxxx, KC_LBRC, KC_RBRC, xxxxxxx, xxxxxxx, KC_SLSH, KC_END, KC_INS, KC_CAPS, xxxxxxx, xxxxxxx,
_______, _______, _______, _______, _______, FUNCT, _______, _______, _______, _______, _______, _______
),
/* Function
* ,-----------------------------------------------------------------------------------------------------------.
* | Esc | | Prev | Play | Next | | | F7 | F8 | F9 | F10 | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | Vol- | Vol+ | Mute | | | F4 | F5 | F6 | F11 | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | | | | | | F1 | F2 | F3 | F12 | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | | | | Funct | Funct | | | | | |
* `-----------------------------------------------------------------------------------------------------------'
*/
[_FUNCTION] = LAYOUT_ortho_4x12(
KC_ESC, xxxxxxx, KC_MPRV, KC_MPLY, KC_MNXT, xxxxxxx, xxxxxxx, KC_F7, KC_F8, KC_F9, KC_F10, xxxxxxx,
_______, xxxxxxx, KC_VOLD, KC_VOLU, KC_MUTE, xxxxxxx, xxxxxxx, KC_F4, KC_F5, KC_F6, KC_F11, _______,
_______, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, KC_F1, KC_F2, KC_F3, KC_F12, _______,
_______, _______, _______, _______, _______, DEBUG, DEBUG, _______, _______, _______, _______, _______
),
/* Debug
* ,-----------------------------------------------------------------------------------------------------------.
* | Reset | Debug | | | | | | | | | | EEP |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | | | | | | | | | | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | | | | | | | | | | |
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
* | | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------------------------------'
*/
[_DEBUG] = LAYOUT_ortho_4x12(
RESET, DEBUG, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, EEP_RST,
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx
)
};

+ 76
- 0
keyboards/planck/keymaps/scottzach1/readme.md View File

@ -0,0 +1,76 @@
![Personal Planck Rev6](https://github.com/scottzach1/Planck/blob/master/img/img_05.jpg)
# Scottzach1 Planck Layout
Upstream: [scottzach1/planck](https://github.com/scottzach1/Planck)
This keyboard layout implements a personal variation of Colemak Mod-DH with M-K switched.
One notable change with this layout is space + backspace in line with the homing keys.
As such, Lower and Raise have been moved to occupy the middle two keys.
I have been using this layout happily daily now since June 2019.
```
Colemak Mod-DH
,-----------------------------------------------------------------------------------------------.
| Tab | Q | W | F | P | B | J | L | U | Y | ; | ' |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Func | A | R | S | T | G | M | N | E | I | O | Enter |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Shift | Z | X | C | D | V | K | H | , | . | / | \ |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Ctrl | GUI | Alt | Shift | Space | Lower | Raise | Bkspc | Shift | - | = | Ctrl |
`-----------------------------------------------------------------------------------------------'
```
```
Lower
,-----------------------------------------------------------------------------------------------.
| Tab | | { | } | | | ` | 7 | 8 | 9 | 0 | |
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
| Func | | ( | ) | | | * | 4 | 5 | 6 | - | Enter |
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
| Shift | | [ | ] | | | / | 1 | 2 | 3 | + | = |
|-------+-------+-------+-------+-------+-------+-------+------+-------+-------+--------+-------|
| Ctrl | GUI | Alt | Shift | Space | Lower | Func | Bksp | 0 | . | = | Ctrl |
`-----------------------------------------------------------------------------------------------'
```
```
Raise
,-----------------------------------------------------------------------------------------------.
| Tab | | { | } | | | | Pg_Up | Up | Pg_Dn | | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Func | | ( | ) | | | Home | Left | Down | Right | Del | Enter |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Shift | | [ | ] | | | | End | Ins | Caps | | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| Ctrl | GUI | Alt | Shift | Space | Func | Raise | Bkspc | | | | Ctrl |
`-----------------------------------------------------------------------------------------------'
```
```
Function
,-----------------------------------------------------------------------------------------------.
| Esc | | Prev | Play | Next | | | F7 | F8 | F9 | F10 | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | Vol- | Vol+ | Mute | | | F4 | F5 | F6 | F11 | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | | | | | | F1 | F2 | F3 | F12 | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | | | | Funct | Funct | | | | | |
`-----------------------------------------------------------------------------------------------'
```
```
Debug
,-----------------------------------------------------------------------------------------------.
| Reset | Debug | | | | | | | | | | EEP |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | | | | | | | | | | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | | | | | | | | | | |
|-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------|
| | | | | | | | | | | | |
`-----------------------------------------------------------------------------------------------'
```

Loading…
Cancel
Save