Skip to content

Commit 235909c

Browse files
shanowaffle87drashna
authored andcommitted
[Keymap] Add md40 ckrbd keymap (qmk#19931)
Co-authored-by: jack <[email protected]> Co-authored-by: Drashna Jaelre <[email protected]>
1 parent 536c988 commit 235909c

File tree

4 files changed

+106
-0
lines changed

4 files changed

+106
-0
lines changed

keyboards/crkbd/keymaps/md40/config.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
This is the c configuration file for the keymap
3+
4+
Copyright 2012 Jun Wako <[email protected]>
5+
Copyright 2015 Jack Humbert
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 2 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
*/
20+
21+
#pragma once
22+
23+
#define TAPPING_FORCE_HOLD
24+
#define TAPPING_TERM 300
25+
26+
#undef RGBLED_NUM
27+
#define RGBLIGHT_EFFECT_BREATHING
28+
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
29+
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
30+
#define RGBLIGHT_EFFECT_SNAKE
31+
#define RGBLIGHT_EFFECT_KNIGHT
32+
#define RGBLIGHT_EFFECT_CHRISTMAS
33+
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
34+
#define RGBLIGHT_EFFECT_RGB_TEST
35+
#define RGBLIGHT_EFFECT_ALTERNATING
36+
#define RGBLIGHT_EFFECT_TWINKLE
37+
#define RGBLED_NUM 27
38+
#define RGBLIGHT_LIMIT_VAL 120
39+
#define RGBLIGHT_HUE_STEP 10
40+
#define RGBLIGHT_SAT_STEP 17
41+
#define RGBLIGHT_VAL_STEP 17

keyboards/crkbd/keymaps/md40/keymap.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright 2021 Shane Dowling (@shano)
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
#define KC_ESCC MT(MOD_LCTL, KC_ESC)
6+
#define KC_ENTS MT(MOD_LSFT, KC_ENT)
7+
#define KC_FN MO(_FN)
8+
9+
enum layers {
10+
_QWERTY,
11+
_FN,
12+
};
13+
14+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
15+
[_QWERTY] = LAYOUT(
16+
//,----+----+----+----+----+----. ,----+----+----+----+----+----.
17+
KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P ,KC_BSPC,
18+
//|----+----+----+----+----+----| |----+----+----+----+----+----|
19+
KC_LSFT, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L ,KC_SCLN,KC_QUOT,
20+
//|----+----+----+----+----+----+ |----+----+----+----+----+----|
21+
KC_ESCC, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M ,KC_COMM,KC_DOT ,KC_SLSH,KC_ESC ,
22+
//`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----'
23+
KC_LALT,KC_LGUI,KC_SPC , KC_ENTS,KC_FN,KC_FN
24+
// `----+----+----' `+---+----+----'c
25+
),
26+
[_FN] = LAYOUT(
27+
//,----+----+----+----+----+----. ,----+----+----+----+----+----.
28+
_______,KC_1, KC_2 ,KC_3, KC_4,KC_5, KC_6,KC_7,KC_8,KC_9,KC_0,KC_BSPC,
29+
//|----+----+----+----+----+----| |----+----+----+----+----+----|
30+
_______,KC_EXCLAIM,KC_AT,KC_HASH,KC_DOLLAR,KC_PERCENT, KC_LEFT,KC_DOWN, KC_UP ,KC_RIGHT,KC_LBRC,KC_RBRC,
31+
//|----+----+----+----+----+----+ |----+----+----+----+----+----|
32+
_______, KC_CIRCUMFLEX , KC_AMPR , KC_ASTERISK , KC_LEFT_PAREN , KC_RIGHT_PAREN , KC_MINUS,KC_PLUS,KC_EQL,KC_PIPE,KC_GRAVE,KC_BACKSLASH,
33+
//`----+----+----+--+-+----+----+----/ \----+----+----+----+----+----+----'
34+
_______,_______,_______ , _______,_______,_______
35+
// `----+----+----' `----+----+----'
36+
)
37+
};
38+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# MD40: Minimally Disruptive 40% Keymap
2+
3+
This keymap is an attempt to go from a standard keyboard layout to a 40% keyboard with minimal disruption.
4+
5+
Some aims:
6+
- Two layers only
7+
- Existing keyboard positions where possible
8+
- Exceptions where it's not possible
9+
- Exceptions where it makes sense
10+
11+
Supports crkbd only.
12+
13+
## Base Layer
14+
15+
![Base Layer](https://i.imgur.com/hXLP6ush.png)
16+
17+
## Fn Layer
18+
19+
![Base Layer](https://i.imgur.com/Sozd1p8h.png)

keyboards/crkbd/keymaps/md40/rules.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# Build Options
3+
# change to "no" to disable the options, or define them in the Makefile in
4+
# the appropriate keymap folder that will get included automatically
5+
#
6+
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
7+
MOUSEKEY_ENABLE = no # Mouse keys
8+
NKRO_ENABLE = no # Enable N-Key Rollover

0 commit comments

Comments
 (0)