aboutsummaryrefslogtreecommitdiff
path: root/keyboards/c39/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/c39/keymaps')
-rw-r--r--[-rwxr-xr-x]keyboards/c39/keymaps/drashna/config.h9
-rwxr-xr-xkeyboards/c39/keymaps/drashna/keymap.c132
-rw-r--r--keyboards/c39/keymaps/drashna/rules.mk4
3 files changed, 102 insertions, 43 deletions
diff --git a/keyboards/c39/keymaps/drashna/config.h b/keyboards/c39/keymaps/drashna/config.h
index 361f68a78..5d53fe54b 100755..100644
--- a/keyboards/c39/keymaps/drashna/config.h
+++ b/keyboards/c39/keymaps/drashna/config.h
@@ -2,6 +2,11 @@
2 2
3// place overrides here 3// place overrides here
4#undef MATRIX_COL_PINS 4#undef MATRIX_COL_PINS
5#define MATRIX_COL_PINS { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 } 5#define MATRIX_COL_PINS \
6 { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
6#undef MATRIX_ROW_PINS 7#undef MATRIX_ROW_PINS
7#define MATRIX_ROW_PINS { B7, B1, B0 } 8#define MATRIX_ROW_PINS \
9 { B7, B1, B0 }
10
11#define RGB_DI_PIN B10
12#define RGBLED_NUM 15
diff --git a/keyboards/c39/keymaps/drashna/keymap.c b/keyboards/c39/keymaps/drashna/keymap.c
index 9de75190d..882938138 100755
--- a/keyboards/c39/keymaps/drashna/keymap.c
+++ b/keyboards/c39/keymaps/drashna/keymap.c
@@ -1,45 +1,97 @@
1#include QMK_KEYBOARD_H 1#include "drashna.h"
2 2
3// Each layer gets a name for readability, which is then used in the keymap matrix below. 3/*
4// The underscores don't mean anything - you can have a layer called STUFF or any other name. 4 * The `LAYOUT_base` macro is a template to allow the use of identical
5// Layer names don't all need to be of the same length, obviously, and you can also skip them 5 * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
6// entirely and just use numbers. 6 * that there is no need to set them up for each layout, and modify all of
7#define _QWERTY 0 7 * them if I want to change them. This helps to keep consistency and ease
8#define _FN1 1 8 * of use. K## is a placeholder to pass through the individual keycodes
9 9 */
10// Defines for task manager and such 10// clang-format off
11#define CALTDEL LCTL(LALT(KC_DEL)) 11#define LAYOUT_base( \
12#define TSKMGR LCTL(LSFT(KC_ESC)) 12 K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
13 K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
14 K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
15 ) \
16 LAYOUT_wrapper( \
17 KC_ESC, K01, K02, K03, K04, K05, KC_NO, K06, K07, K08, K09, K0A, KC_DEL, \
18 ALT_T(KC_TAB), K11, K12, K13, K14, K15, KC_BSPC, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
19 KC_MLSF, CTL_T(K21), K22, K23, K24, LT(_LOWER,K25), KC_SPC, LT(_RAISE,K26), K27, K28, K29, RCTL_T(K2A), KC_ENT \
20 )
21#define LAYOUT_base_wrapper(...) LAYOUT_base(__VA_ARGS__)
13 22
14const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
15 24
16/* Qwerty 25 [_QWERTY] = LAYOUT_base_wrapper(
17 * ,----------------------------------------------------------------------------. ,-------------. 26 _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
18 * | Q | W | E | R | T | Bksp | Y | U | I | O | P | | M1 | M2 | 27 _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
19 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------| 28 _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
20 * | A | S | D | F | G | Enter| H | J | K | L | ; | | M3 | M4 | 29 ),
21 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------| 30
22 * | Z | X | C | V | B | FN1 | N | M | , | . | / | | M5 | M6 | 31 [_COLEMAK] = LAYOUT_base_wrapper(
23 * `----------------------------------------------------------------------------' `-------------' 32 _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
24 */ 33 _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
25[_QWERTY] = LAYOUT( 34 _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
26 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_1, KC_2, 35 ),
27 KC_A, KC_S, KC_D, KC_F, KC_G, MT(MOD_LSFT, KC_ENT), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_3, KC_4, 36
28 KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_FN1, KC_SPC), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_5, KC_6 37 [_DVORAK] = LAYOUT_base_wrapper(
29), 38 _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
30 39 _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
31/* FN1 40 _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
32 * ,----------------------------------------------------------------------------. ,-------------. 41 ),
33 * | 1 | 2 | 3 | 4 | 5 | Bksp | 6 | 7 | 8 | 9 | 0 | | M1 | M2 | 42
34 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------| 43 [_WORKMAN] = LAYOUT_base_wrapper(
35 * | 4 | 5 | 6 | + | | Enter| | | | | | | M3 | M4 | 44 _________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
36 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------| 45 _________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
37 * | 7 | 8 | 9 | 0 | | FN1 | | | | | | | M5 | M6 | 46 _________________WORKMAN_L3________________, _________________WORKMAN_R3________________
38 * `----------------------------------------------------------------------------' `-------------' 47 ),
39 */ 48
40[_FN1] = LAYOUT( 49 [_NORMAN] = LAYOUT_base_wrapper(
41 KC_1, KC_2, KC_3, KC_4, KC_5, KC_BSPC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_1, KC_2, 50 _________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
42 KC_4, KC_5, KC_6, KC_PLUS, _______, KC_ENT, _______, _______, _______, _______, _______, KC_3, KC_4, 51 _________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
43 KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_5, KC_6 52 _________________NORMAN_L3_________________, _________________NORMAN_R3_________________
44), 53 ),
54
55 [_MALTRON] = LAYOUT_base_wrapper(
56 _________________MALTRON_L1________________, _________________MALTRON_R1________________,
57 _________________MALTRON_L2________________, _________________MALTRON_R2________________,
58 _________________MALTRON_L3________________, _________________MALTRON_R3________________
59 ),
60
61 [_EUCALYN] = LAYOUT_base_wrapper(
62 _________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
63 _________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
64 _________________EUCALYN_L3________________, _________________EUCALYN_R3________________
65 ),
66
67 [_CARPLAX] = LAYOUT_base_wrapper(
68 _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
69 _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
70 _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
71 ),
72
73 [_MODS] = LAYOUT_wrapper(
74 _______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
75 _______, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______,
76 KC_LSFT, ___________________BLANK___________________, _______, ___________________BLANK___________________, _______
77 ),
78
79 [_LOWER] = LAYOUT_wrapper(
80 KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC,
81 KC_DEL, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE,
82 _______, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______
83 ),
84
85 [_RAISE] = LAYOUT_wrapper(
86 KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC,
87 KC_DEL, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS,
88 _______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______
89 ),
90
91 [_ADJUST] = LAYOUT_wrapper(
92 KC_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
93 VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EEP_RST,
94 TG_MODS, _________________ADJUST_L3_________________, KC_RGB_T,_________________ADJUST_R3_________________, RGB_IDL
95 )
45}; 96};
97// clang-format on
diff --git a/keyboards/c39/keymaps/drashna/rules.mk b/keyboards/c39/keymaps/drashna/rules.mk
index ae0cc9efe..d216f6abe 100644
--- a/keyboards/c39/keymaps/drashna/rules.mk
+++ b/keyboards/c39/keymaps/drashna/rules.mk
@@ -15,4 +15,6 @@ MIDI_ENABLE = no # MIDI controls
15UNICODE_ENABLE = yes # Unicode 15UNICODE_ENABLE = yes # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17AUDIO_ENABLE = yes # Audio output on port C6 17AUDIO_ENABLE = yes # Audio output on port C6
18RGBLIGHT_ENABLE = no # RGB Enable / Disable 18RGBLIGHT_ENABLE = yes # RGB Enable / Disable
19
20RGBLIGHT_STARTUP_ANIMATION = yes