aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@acm.org>2019-03-05 15:22:51 -0500
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-03-05 12:22:51 -0800
commitdbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568 (patch)
tree30f0f2ba52a8ca4f645e2216eebb58f0be8d7348
parent8c2a23dee16077b5906ea090cd6fac268d0079f2 (diff)
downloadqmk_firmware-dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568.tar.gz
qmk_firmware-dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568.zip
Adopted LAYOUT, added some keys (#5320)
* Add HOME/END keys as upper/lower on arrow-up/down * Reduce .hex file size by turning off unneeded options * Put digit keypad onto left hand upon RAISE; this will sometimes be preferable to double-hits of right hand * Latest super latest version merge * cbbrowne keymap for XD75re * starting notes on XD75re keymap plans * First draft of bottom row of QWERTY * Switch my special bottom line over to QCENT * Dunno * Filling in wanted keys, bit by bit... * Add copyright, extra macro * Clean up comments, remove some experimental code I didn't like * TODO plans for xd75re * clean up keyboard layout * QCENT2 is my new experiment for the main keyboard... * Add a few more main layer keys, and modify LOWER to shift things outwards to conform with main layer * Clean up RAISE layer to conform with main layer, remove QCENT layer as QCENT2 is the new thing * More xd75 changes, now that I actually have it in hand * shift keymap around, as original attempt was a bit too aggressive in keeping to the edges * more revs to XD75 * Dropping parts of the centre keypad in favor of Keys I Really Need * Improve documentation to conform with how builds are done now * Improve documentation to conform with how builds are done now * Add cbbrowne rules file as alternative to having the rules in Makefile * Makefile not needed anymore for individual keymap * Some revs to my keymapping * Add {} * Add PGUP/PGDN * Shifted some middle-range keys around * Needed Tilde, Backquote, and to shift RESET onto FUNCTION layer * Wanted ~ * cbbrowne hasn't anything to do with hadron keymaps * trim unneeded bits * I prefer OrgMode for my notes * Have a right-alt * Layer keys make LED colors change * Add sample user rules for cbbrowne * Add source of xd75 rules * Individualized xd75 rules * Adopt LAYOUT to genericize the layout as an ortholinear 5x15 keyboard
-rw-r--r--keyboards/hadron/ver2/keymaps/readme.md1
-rw-r--r--keyboards/planck/keymaps/cbbrowne/readme.org (renamed from keyboards/planck/keymaps/cbbrowne/readme.md)63
-rw-r--r--keyboards/xd75/keymaps/cbbrowne/keymap.c141
-rw-r--r--keyboards/xd75/keymaps/cbbrowne/rules.mk24
-rw-r--r--users/cbbrowne/cbbrowne.c0
-rw-r--r--users/cbbrowne/cbbrowne.h39
-rw-r--r--users/cbbrowne/rules.mk1
7 files changed, 173 insertions, 96 deletions
diff --git a/keyboards/hadron/ver2/keymaps/readme.md b/keyboards/hadron/ver2/keymaps/readme.md
index 54fb5f6d9..2f7641d18 100644
--- a/keyboards/hadron/ver2/keymaps/readme.md
+++ b/keyboards/hadron/ver2/keymaps/readme.md
@@ -20,4 +20,3 @@ When adding your keymap to this list, keep it organised alphabetically (select l
20# List of Planck keymaps 20# List of Planck keymaps
21 21
22* **default** default Planck layout 22* **default** default Planck layout
23* **cbbrowne** cbbrowne's Planck layout \ No newline at end of file
diff --git a/keyboards/planck/keymaps/cbbrowne/readme.md b/keyboards/planck/keymaps/cbbrowne/readme.org
index e55b130ef..2b1005858 100644
--- a/keyboards/planck/keymaps/cbbrowne/readme.md
+++ b/keyboards/planck/keymaps/cbbrowne/readme.org
@@ -1,20 +1,18 @@
1cbbrowne custom keyboard 1* cbbrowne custom keyboard
2==============================
3 2
4Due to cbbrowne@acm.org 3 Due to cbbrowne@acm.org
5Christopher Browne 4 Christopher Browne
6 5
7This was originally based on the default keyboard map, but I have been 6 This was originally based on the default keyboard map, but I have
8doing sundry experimentation: 7 been doing sundry experimentation:
9 8
101. Useful Experiments 9** Useful Experiments
11----------------------------------------
12 10
13 * It made sense to mess around some with keyboard maps. 11 - It made sense to mess around some with keyboard maps.
14 - I added a keypad, originally based on keymaps/numpad.c, but 12 - I added a keypad, originally based on keymaps/numpad.c, but
15 mighty substantially revised, as that one seems to be rotated 90 13 mighty substantially revised, as that one seems to be rotated 90
16 degrees from usual conventions for number pads 14 degrees from usual conventions for number pads
17 * The keypad layer also includes some sample "hacks" of cool things, 15 - The keypad layer also includes some sample "hacks" of cool things,
18 all using actions attached in using the function action_get_macro() 16 all using actions attached in using the function action_get_macro()
19 - Key [1][2] aka "q" types out my name, cbbrowne, as a fun example 17 - Key [1][2] aka "q" types out my name, cbbrowne, as a fun example
20 of a key generating a bunch of keystrokes. The keystroke is 18 of a key generating a bunch of keystrokes. The keystroke is
@@ -24,7 +22,7 @@ doing sundry experimentation:
24 - Key [2][2] aka "a" uses a random number generator to select a digit 0-9 at random 22 - Key [2][2] aka "a" uses a random number generator to select a digit 0-9 at random
25 - Key [3][2] aka "z" uses a random number generator to select a letter a-z at random 23 - Key [3][2] aka "z" uses a random number generator to select a letter a-z at random
26 - Key [1][3] aka "e" spits out the keymap version number 24 - Key [1][3] aka "e" spits out the keymap version number
27 * Trying out sgoodwin's "hold Enter down to get Shift" 25 - Trying out sgoodwin's "hold Enter down to get Shift"
28 - Liking this Quite Well Enough... 26 - Liking this Quite Well Enough...
29 - Applied this to both Shift and Quote 27 - Applied this to both Shift and Quote
30 - It seems likely that Alt should get a right-hand-side, akin to this... 28 - It seems likely that Alt should get a right-hand-side, akin to this...
@@ -33,11 +31,11 @@ doing sundry experimentation:
33 - Emacs likes this!!! :-) 31 - Emacs likes this!!! :-)
34 - I'm suspicious that I'll want to shift ROT_LED another location over, 32 - I'm suspicious that I'll want to shift ROT_LED another location over,
35 so some modifier can replace the OS/KC_LGUI key 33 so some modifier can replace the OS/KC_LGUI key
36 * I have added an alternate ADJUST layer that is activated via update_tri_layer() 34 - I have added an alternate ADJUST layer that is activated via update_tri_layer()
37 - e.g. - LOWER+RAISE simultaneously 35 - e.g. - LOWER+RAISE simultaneously
38 - This seems entirely more useful for handling my "special keys" 36 - This seems entirely more useful for handling my "special keys"
39 like the random numbers, user name, and such, than the keypad layer 37 like the random numbers, user name, and such, than the keypad layer
40 * The _ADJUST layer provides a good place to have RESET 38 - The _ADJUST layer provides a good place to have RESET
41 - But this isn't strictly enough; I want RESET somewhat accessible from 39 - But this isn't strictly enough; I want RESET somewhat accessible from
42 main layer lest an error hide that layer 40 main layer lest an error hide that layer
43 - I never use the OS/KC_LGUI key (that's Command on MacOS, Windows 41 - I never use the OS/KC_LGUI key (that's Command on MacOS, Windows
@@ -45,8 +43,7 @@ doing sundry experimentation:
45 some sort 43 some sort
46 44
47 45
482. Some code structure ideas 46** Some code structure ideas
49---------------------------------------------------
50 47
51 Each layer is given a name to aid in readability, which is then 48 Each layer is given a name to aid in readability, which is then
52 used in the keymap matrix below. The underscores do not denote 49 used in the keymap matrix below. The underscores do not denote
@@ -65,57 +62,55 @@ doing sundry experimentation:
65 to care (beyond "start at 0", and arguably even that's not needed) 62 to care (beyond "start at 0", and arguably even that's not needed)
66 about their values. 63 about their values.
67 64
683. Things I did not like about the default mapping 65** Things I did not like about the default mapping
69---------------------------------------------------------
70 66
71 * I found control too hard to get to. I use it more than Tab, so 67
68 - I found control too hard to get to. I use it more than Tab, so
72 switched it there. 69 switched it there.
73 * Having dash on [lower-j] is a bit nonintuitive, but may be OK 70 - Having dash on [lower-j] is a bit nonintuitive, but may be OK
74 * I switched ESC/TAB/M(0) around 71 - I switched ESC/TAB/M(0) around
75 * I'm suspicious that I want to shift M(0) from [4][1] to [4][2], 72 - I'm suspicious that I want to shift M(0) from [4][1] to [4][2],
76 and shift ESC off the first column so KC_LCTL and KC_LALT can 73 and shift ESC off the first column so KC_LCTL and KC_LALT can
77 be on the first column. 74 be on the first column.
78 * I needed to swap ' and ENTER 75 - I needed to swap ' and ENTER
79 76
804. Unuseful experiments 77** Unuseful experiments
81---------------------------------------------------------
82 78
83I have tried some things out that didn't turn out particularly well. 79I have tried some things out that didn't turn out particularly well.
84I'll note some of these for posterity, hopefully helpful in not doing 80I'll note some of these for posterity, hopefully helpful in not doing
85unwise things again... 81unwise things again...
86 82
87 * I tried added Workman alongside Dvorak and Colemak 83 - I tried added Workman alongside Dvorak and Colemak
88 - Boy, oh boy, these don't help!!! 84 - Boy, oh boy, these don't help!!!
89 - I have done 30 years of learning of Emacs key mappings, and 85 - I have done 30 years of learning of Emacs key mappings, and
90 these alternative keyboards massively mess me up 86 these alternative keyboards massively mess me up
91 87
92 * Space Cadet Shift; switching L_SHIFT to KC_LSP0, so that when I 88 - Space Cadet Shift; switching L_SHIFT to KC_LSP0, so that when I
93 just hit SHIFT, I get a left parens. In principle, this is great 89 just hit SHIFT, I get a left parens. In principle, this is great
94 for Lisping. 90 for Lisping.
95 - Unfortunately, there are times when mouse interfaces use SHIFT 91 - Unfortunately, there are times when mouse interfaces use SHIFT
96 to allow selecting multiple items, and this really interferes 92 to allow selecting multiple items, and this really interferes
97 with that 93 with that
98 94
995. TODO 95** TODO
100---------------------------------------------------------
101 96
102 * I use tmux quite a lot; the mollat keymap seems to have some 97 - I use tmux quite a lot; the mollat keymap seems to have some
103 interesting helpers. It might be interesting to add a "tmux 98 interesting helpers. It might be interesting to add a "tmux
104 layer," or to have a few keys in a layer oriented towards that 99 layer," or to have a few keys in a layer oriented towards that
105 - Keys for... 100 - Keys for...
106 - Picking windows 0 thru 8 101 - Picking windows 0 thru 8
107 - next/prev/new window 102 - next/prev/new window
108 * The mollat tmux layer also suggests some thoughts about Emacs 103 - The mollat tmux layer also suggests some thoughts about Emacs
109 helpers. 104 helpers.
110 * I do not presently have anything that handles X11 screen 105 - I do not presently have anything that handles X11 screen
111 switching, as with Control-Alt-various 106 switching, as with Control-Alt-various
112 * I ought to probably look into KC_LEAD, to have some key combos 107 - I ought to probably look into KC_LEAD, to have some key combos
113 that do not need to be concurrent 108 that do not need to be concurrent
114 * The jeebak keymap seems to have some neat ideas: 109 - The jeebak keymap seems to have some neat ideas:
115 - Number layer which is aggressive about having numbers in several places 110 - Number layer which is aggressive about having numbers in several places
116 - TouchCursor layer seems interesting 111 - TouchCursor layer seems interesting
117 - It sets up a layer with cursor keys on the home keys 112 - It sets up a layer with cursor keys on the home keys
118 * The jeremy-dev keymap has some very interesting concepts 113 - The jeremy-dev keymap has some very interesting concepts
119 - Shift hands outwards; the special keys go in the center 114 - Shift hands outwards; the special keys go in the center
120 - Symbol layer has some compound keys for C operators like /=, *=, -=, +=, ... 115 - Symbol layer has some compound keys for C operators like /=, *=, -=, +=, ...
121 - This is likely what I'll use for my XD75re, and maybe I'll fork a 116 - This is likely what I'll use for my XD75re, and maybe I'll fork a
diff --git a/keyboards/xd75/keymaps/cbbrowne/keymap.c b/keyboards/xd75/keymaps/cbbrowne/keymap.c
index 1bebf2d11..b20cafabc 100644
--- a/keyboards/xd75/keymaps/cbbrowne/keymap.c
+++ b/keyboards/xd75/keymaps/cbbrowne/keymap.c
@@ -1,4 +1,4 @@
1/* Copyright 2017 REPLACE_WITH_YOUR_NAME 1/* Copyright 2017 Christopher B Browne
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by 4 * it under the terms of the GNU General Public License as published by
@@ -62,12 +62,7 @@ enum macro_id {
62#define FUNCTION MO(_FUNCTION) 62#define FUNCTION MO(_FUNCTION)
63#define MRAISE MO(_RAISE) 63#define MRAISE MO(_RAISE)
64#define MLOWER MO(_LOWER) 64#define MLOWER MO(_LOWER)
65#define ALTBSP ALT_T(KC_BSPC) 65#define ALTPLUS ALT_T(KC_PLUS)
66
67/* More modifiers for QCENT2... */
68#define PALT MT(KC_RALT, KC_P)
69#define SCTL MT(KC_RCTL, KC_SCLN)
70#define SSHF MT(KC_RSFT, KC_SLSH)
71 66
72const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 67const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
73 68
@@ -84,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
84 * | BRITE | LCTRL | LALT | LGUI | RAISE | XXXXXX . SPACE | LOWER | RGUI | RALT | RCTRL | FN | LEFT | DOWN | RIGHT | 79 * | BRITE | LCTRL | LALT | LGUI | RAISE | XXXXXX . SPACE | LOWER | RGUI | RALT | RCTRL | FN | LEFT | DOWN | RIGHT |
85 * '--------------------------------------------------------------------------------------------------------------------------------------' 80 * '--------------------------------------------------------------------------------------------------------------------------------------'
86 */ 81 */
87 82
88 /* layout for centred keypad + qwerty... 83 /* layout for centred keypad + qwerty...
89 84
90|ESC| 1 | 2 | 3 | 4 | 5 | ? | ? | ? | ? | 6 | 7 | 8 | 9 | 0 | 85|ESC| 1 | 2 | 3 | 4 | 5 | ? | ? | ? | ? | 6 | 7 | 8 | 9 | 0 |
@@ -94,40 +89,35 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
94|ALT|LED| | | | | | | | | | | | | | 89|ALT|LED| | | | | | | | | | | | | |
95 90
96 91
97
98
99keys needing to be assigned: 92keys needing to be assigned:
10011 - KC_TAB - tab 9351 - KC_TAB - tab
10152 - ROT_LED - rotate LED 94 - ROT_LED - rotate LED
10215 - KC_LALT - Left ALT 9515 - KC_LALT - Left ALT
103 - KC_LGUI - this is the windows/command key, which I think I do not use... 9653,55 - M_RAISE - switch to RAISE layer
104 - M_LOWER - switch to LOWER layer 975b - M_LOWER - switch to LOWER layer
105 - KC_SPC - space 9856,59,5a - KC_SPC - space
106 - M_UPPER - switch to UPPER layer, maybe unneeded for 15x5 995c - KC_LEFT - famous arrows
107 - KC_LEFT - famous arrows 1005d - KC_DOWN - famous arrows
108 - KC_DOWN - famous arrows 1015e - KC_UP - famous arrows
109 - KC_UP - famous arrows 1025f - KC_RIGHT - famous arrows
110 - KC_RIGHT - famous arrows 1033f - KC_ENT - enter
111 - KC_ENT - enter
112 - KC_GRV - leftwards quote 104 - KC_GRV - leftwards quote
113 - KC_QUOT - rightwards quote 1054f - KC_QUOT - rightwards quote
114 - KC_BSPC - backspace 1061f - KC_BSPC - backspace
115 - KC_ESC 10711 - KC_ESC
10819 - KC_GRV - ` - raised
10919 - KC_TILD - ~ - lowered
116 110
117Missing still... 111 */
118 KC_LBRC and KC_LCBR
119 KC_RBRC and KC_RCBR
120 112
121 */ 113[_QWERTY] = LAYOUT_ortho_5x15( /* QWERTY, with keypad in the centre */
114 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC ,
115 KC_LALT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_7, KC_8, KC_EQL, KC_Y, KC_U, KC_I, KC_O, KC_P, ALTPLUS ,
116 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LBRC, KC_RBRC,KC_MINS, KC_H, KC_J, KC_K, KC_L, KC_SCLN, CTLENTER ,
117 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGUP, KC_EQL, KC_BSLS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SHIFTQUOTE ,
118 KC_TAB, FUNCTION, MRAISE, FUNCTION, MRAISE, KC_SPC,KC_PGDN, KC_MINS, KC_SPC, KC_SPC, MLOWER, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
119),
122 120
123 [_QWERTY] = { /* QWERTY, with keypad in the centre */
124 { KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, RESET, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC },
125 { KC_LALT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_7, KC_8, KC_EQL, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_PLUS },
126 { KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_4, KC_5, KC_MINS, KC_H, KC_J, KC_K, KC_L, KC_SCLN, CTLENTER },
127 { KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_1, KC_2, KC_BSLS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SHIFTQUOTE },
128 { KC_TAB, FUNCTION, MRAISE, FUNCTION, MRAISE, KC_SPC, KC_0, KC_MINS, KC_SPC, KC_SPC, MLOWER, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT }
129 },
130
131/* LOWER 121/* LOWER
132 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. 122 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------.
133 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | XXXXXX . | 123 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | XXXXXX . |
@@ -142,13 +132,13 @@ Missing still...
142 * '--------------------------------------------------------------------------------------------------------------------------------------' 132 * '--------------------------------------------------------------------------------------------------------------------------------------'
143 */ 133 */
144 134
145 [_LOWER] = { /* LOWERED */ 135[_LOWER] = LAYOUT_ortho_5x15( /* LOWERED */
146 { ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11 }, 136 ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_TILD, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11 ,
147 { ___T___, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_INS }, 137 ___T___, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_INS ,
148 { ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______ }, 138 ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE ,
149 { _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______ }, 139 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______ ,
150 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, 140 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
151 }, 141 ),
152 142
153/* RAISED 143/* RAISED
154 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. 144 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------.
@@ -164,13 +154,13 @@ Missing still...
164 * '--------------------------------------------------------------------------------------------------------------------------------------' 154 * '--------------------------------------------------------------------------------------------------------------------------------------'
165 */ 155 */
166 156
167 [_RAISE] = { /* RAISED */ 157[_RAISE] = LAYOUT_ortho_5x15 ( /* RAISED */
168 { KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___ }, 158 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, MVERSION, _______, KC_GRV, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___ ,
169 { KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, _______, _______, KC_7, KC_8, KC_9, KC_0, _______, _______, KC_INS }, 159 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, USERNAME, _______, KC_7, KC_8, KC_LCBR, KC_RCBR, _______, _______, KC_INS ,
170 { KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, ___T___, ___T___ }, 160 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, RANDDIG, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, ___T___, ___T___ ,
171 { KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______, _______ }, 161 KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RANDALP, _______, _______, _______, _______, ___T___, ___T___, _______, _______ ,
172 { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, 162 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
173 }, 163),
174 164
175/* FUNCTION 165/* FUNCTION
176 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. 166 * .---------------------------------------------------------------------------------------------------------------------- 2u ------------.
@@ -178,21 +168,21 @@ Missing still...
178 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| 168 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
179 * | SCR LK | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 | PAUSE | PR SCR | 169 * | SCR LK | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 | PAUSE | PR SCR |
180 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ------------+--------| 170 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ------------+--------|
181 * | CAP LK | MS BT5 | MS BT4 | MS BT3 | MS BT2 | SLOW M | FAST M | NEXT | VOL+ | VOL- | PLAY | | XXXXXX . | WHEEL+ | 171 * | CAP LK | MS BT5 | MS BT4 | MS BT3 | MS BT2 | SLOW M | FAST M | NEXT | VOL+ | VOL- | PLAY | | XXXXXX | | WHEEL+ |
182 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ---------------------+--------| 172 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ---------------------+--------|
183 * | RGB TG | RGB MD | RGB HI | RGB HD | RGB SI | RGB SD | RGB VI | RGB VD | BL TOG | BL INC | BL DEC | XXXXXX . | MOUS Un | WHEEL- | 173 * | RGB TG | RGB MD | RGB HI | RGB HD | RGB SI | RGB SD | RGB VI | RGB VD | BL TOG | BL INC | BL DEC | XXXXXX | | MOUS U | WHEEL- |
184 * |--------+--------+--------+--------+--------+-- 2u -----------+--------+--------+--------+--------+-----------------+--------+--------| 174 * |--------+--------+--------+--------+--------+-- 2u -----------+--------+--------+--------+--------+-----------------+--------+--------|
185 * | RESET | | QWERTY | COLEMK | DVORAK | XXXXXX . MS BT1 | | | | | | MOUS L | MOUS D | MOUS R | 175 * | RESET | | QWERTY | COLEMK | DVORAK | XXXXXX . MS BT1 | | | | | | MOUS L | MOUS D | MOUS R |
186 * '--------------------------------------------------------------------------------------------------------------------------------------' 176 * '--------------------------------------------------------------------------------------------------------------------------------------'
187 */ 177 */
188 178
189 [_FUNCTION] = { /* FUNCTION */ 179[_FUNCTION] = LAYOUT_ortho_5x15( /* FUNCTION */
190 { KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___, ___T___ }, 180 KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, RESET,
191 { KC_SLCK, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_PAUS, KC_PSCR }, 181 KC_SLCK, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_PAUS, KC_PSCR ,
192 { KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, ___T___, ___T___, KC_WH_U }, 182 KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, ___T___, ___T___, KC_WH_U ,
193 { RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_INC, BL_DEC, ___T___, ___T___, KC_MS_U, KC_WH_D }, 183 RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_INC, BL_DEC, ___T___, ___T___, KC_MS_U, KC_WH_D ,
194 { RESET , _______, DF(_QWERTY), DF(_QWERTY), DF(_QWERTY), KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R }, 184 RESET , _______, DF(_QWERTY), DF(_QWERTY), DF(_QWERTY), KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R
195 }, 185 )
196}; 186};
197 187
198/* This bit of logic seeds a wee linear congruential random number generator */ 188/* This bit of logic seeds a wee linear congruential random number generator */
@@ -223,8 +213,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
223 break; 213 break;
224 case M_VERSION: 214 case M_VERSION:
225 if (record->event.pressed) { 215 if (record->event.pressed) {
226 SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@"); 216 SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP);
227 // SEND_STRING(QMK_VERSION "@" QMK_BUILDDATE);
228 } 217 }
229 break; 218 break;
230 case M_RANDDIGIT: 219 case M_RANDDIGIT:
@@ -289,3 +278,33 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
289 } 278 }
290 return MACRO_NONE; 279 return MACRO_NONE;
291}; 280};
281
282void matrix_init_user(void) {
283 rgblight_enable();
284 rgblight_mode(1);
285 rgblight_sethsv(325,255,255);
286}
287
288uint32_t layer_state_set_user(uint32_t state) {
289 switch(biton32(state)) {
290 case _QWERTY:
291 rgblight_sethsv_white();
292 break;
293 case _LOWER:
294 rgblight_sethsv_blue();
295 break;
296 case _RAISE:
297 rgblight_sethsv_green();
298 break;
299 case _ADJUST:
300 rgblight_sethsv_orange();
301 break;
302 case _FUNCTION:
303 rgblight_sethsv_red();
304 break;
305 default:
306 rgblight_sethsv(325,255,255);
307 break;
308 }
309 return state;
310}
diff --git a/keyboards/xd75/keymaps/cbbrowne/rules.mk b/keyboards/xd75/keymaps/cbbrowne/rules.mk
new file mode 100644
index 000000000..0968298a0
--- /dev/null
+++ b/keyboards/xd75/keymaps/cbbrowne/rules.mk
@@ -0,0 +1,24 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
6MOUSEKEY_ENABLE = no # Mouse keys(+4700)
7EXTRAKEY_ENABLE = no # Audio control and System control(+450)
8CONSOLE_ENABLE = no # Console for debug(+400)
9COMMAND_ENABLE = yes # Commands for debug and configuration
10NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
17API_SYSEX_ENABLE = no # Enable SYSEX API (+5390)
18
19# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
20SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
21
22ifndef QUANTUM_DIR
23 include ../../../../Makefile
24endif
diff --git a/users/cbbrowne/cbbrowne.c b/users/cbbrowne/cbbrowne.c
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/users/cbbrowne/cbbrowne.c
diff --git a/users/cbbrowne/cbbrowne.h b/users/cbbrowne/cbbrowne.h
new file mode 100644
index 000000000..301636c05
--- /dev/null
+++ b/users/cbbrowne/cbbrowne.h
@@ -0,0 +1,39 @@
1#ifndef USERSPACE
2#define USERSPACE
3
4#ifdef BACKLIGHT_ENABLE
5#include "backlight.h"
6#endif
7#include "quantum.h"
8#include "config.h"
9
10#ifndef CONFIG_USER_H
11#define CONFIG_USER_H
12
13#ifndef NO_DEBUG
14#define NO_DEBUG
15#endif
16#ifndef NO_PRINT
17#define NO_PRINT
18#endif
19
20/* cbbrowne user configuration */
21
22#define randadd 53
23#define randmul 181
24#define randmod 167
25
26/* Filler to make layering a bit clearer *
27 * borrowed from basic keymap */
28
29#define _______ KC_TRNS
30#define _____ KC_NO
31
32#define LEADER_TIMEOUT 300
33#ifndef LIGHT_CONFIG_H
34#define BACKLIGHT_BREATHING
35#endif
36
37#endif
38
39#endif
diff --git a/users/cbbrowne/rules.mk b/users/cbbrowne/rules.mk
new file mode 100644
index 000000000..497638cdb
--- /dev/null
+++ b/users/cbbrowne/rules.mk
@@ -0,0 +1 @@
SRC += cbbrowne.c