Browse Source

initial commit for the custom layout & keymap

master
MaxMalRichtig 4 years ago
commit
324d33c6d3
  1. 61
      README.md
  2. 33
      config.h
  3. 41
      keymap.c
  4. 1
      rules.mk

61
README.md

@ -0,0 +1,61 @@
![DZ60 split spacebar layout image](https://i.imgur.com/EFF7pBN.png)
# weeheavy's DZ60 split spacebar layout
* 2u left shift
* arrow cluster
* split spacebar with a center key
## Layouts
The base layout is ANSI QWERTY.
Key sizes (ASCII keyboards below match this scale):
1u = 4 chars = | |
1.25u = 5 chars = | |
1.5u = 6 chars = | |
1.75u = 7 chars = | |
2u = 8 chars = | |
2.25u = 9 chars = | |
2.75u = 11 chars = | |
6.25u = 25 chars = | |
### Layer 0: Base layout
Specialities:
* Arrow cluster
* FN1: access to layer 1
* F2: access to layer 2
```
,----------------------------------------------------------.
|Es||1 ||2 ||3 ||4 ||5 ||6 ||7 ||8 ||9 ||0 ||- ||= || Bksp |
|----------------------------------------------------------+
|Tab ||Q ||W ||E ||R ||T ||Y ||U ||I ||O ||P ||[ ||] || \ |
|----------------------------------------------------------+
|Caps ||A ||S ||D ||F ||G ||H ||J ||K ||L ||; ||' || Enter |
|----------------------------------------------------------+
|Shift ||Z ||X ||C ||V ||B ||N ||M ||, ||. ||/ ||Sf||↑ ||Dl|
|----------------------------------------------------------+
|Ctl||Win||Alt|| Space ||FN1|| Space ||Al||F2||← ||↓ ||→ |
`----------------------------------------------------------'
```
### Layer 1: Utility
Specialities:
* F1-F12 keys when holding FN1
* Movement cluster on the right hand side
* Multimedia cluster on the bottom right
* RGB config on the left hand side
### Layer 2: Config and setup
Specialities:
* Reset key on ESC and backslash location
* Additional "B" key (a learning from my mistakes)

33
config.h

@ -0,0 +1,33 @@
#ifndef CONFIG_KEYMAP_H
#define CONFIG_KEYMAP_H
/* LAYOUT_all
*
* 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e
*
* 10 12 13 14 15 16 17 18 19 1a 1b 1c 1d 2d
*
* 20 22 23 24 25 26 27 28 29 2a 2b 2c 1e
*
* 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e
*
* 40 41 43 44 46 48 4a 4b 4c 4d 4e
*
*/
#define MY_LAYOUT_all_iso( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \
k10, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k2d, \
k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k1e, \
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, \
k40, k41, k43, k44, k46, k48, k4a, k4b, k4c, k4d, k4e \
) { \
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e }, \
{ k10, KC_NO, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e }, \
{ k20, KC_NO, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, KC_NO }, \
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e }, \
{ k40, k41, KC_NO, k43, k44, KC_NO, k46, KC_NO, k48, KC_NO, k4a, k4b, k4c, k4d, k4e } \
}
#include "../../config.h"
#endif

41
keymap.c

@ -0,0 +1,41 @@
#include QMK_KEYBOARD_H
#include "keymap_german.h"
// Make special keycodes more visible
#define _____ KC_TRNS
#define XXXXX KC_NO
// Layer definition
#define _BS 0
#define _SY 1
#define _CN 2
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Base layer - ANSI QWERTY
[_BS] = MY_LAYOUT_all_iso(
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, DE_SS, DE_ACUT, XXXXX, XXXXX,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, DE_Z, KC_U, KC_I, KC_O, KC_P, DE_UE, DE_PLUS, KC_ENT,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
KC_LSFT, DE_LESS, DE_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_SY), KC_SPC, KC_RALT, MO(_CN), KC_LEFT, KC_DOWN, KC_RIGHT),
// Utility layer - RGB and multimedia control
[_SY] = MY_LAYOUT_all_iso(
_____, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _____, _____,
_____, RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_R, _____, _____, KC_PSCR, _____, KC_PAUS, _____, _____, _____, _____,
_____, RGB_HUI, RGB_HUD, _____, _____, _____, _____, KC_INS, KC_HOME, KC_PGUP, _____, _____, _____,
_____, _____, RGB_SAI, RGB_SAD, _____, _____, _____, _____, _____, KC_END, KC_PGDN, _____, KC_MPLY, KC_VOLU, KC_MUTE,
_____, RGB_VAI, RGB_VAD, _____, _____, _____, _____, _____, KC_MPRV, KC_VOLD, KC_MNXT),
// Setup layer - Reset an additional "b" button
[_CN] = MY_LAYOUT_all_iso(
RESET, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
KC_B, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, RESET,
_____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
_____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____,
_____, _____, _____, _____, _____, _____, _____, _____, _____, _____, _____),
};

1
rules.mk

@ -0,0 +1 @@
BACKLIGHT_ENABLE = no
Loading…
Cancel
Save