aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/ajp10304/ajp10304.c10
-rw-r--r--users/ajp10304/ajp10304.h2
-rw-r--r--users/ajp10304/readme.md21
3 files changed, 25 insertions, 8 deletions
diff --git a/users/ajp10304/ajp10304.c b/users/ajp10304/ajp10304.c
index dd13787d6..b8729b94d 100644
--- a/users/ajp10304/ajp10304.c
+++ b/users/ajp10304/ajp10304.c
@@ -24,6 +24,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
24 set_single_persistent_default_layer(_QWERTY); 24 set_single_persistent_default_layer(_QWERTY);
25 } 25 }
26 return false; 26 return false;
27 case COLEMAK:
28 if (record->event.pressed) {
29 set_single_persistent_default_layer(_COLEMAK);
30 }
27 case LOWER: 31 case LOWER:
28 if (record->event.pressed) { 32 if (record->event.pressed) {
29 layer_on(_LOWER); 33 layer_on(_LOWER);
@@ -157,12 +161,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
157 break; 161 break;
158 case M_MODE: 162 case M_MODE:
159 if (record->event.pressed) { 163 if (record->event.pressed) {
160 SEND_STRING("PC"); 164 send_string("PC ");
165 send_string(get_highest_layer(default_layer_state) == _COLEMAK ? "COLEMAK" : "QWERTY");
161 } 166 }
162 break; 167 break;
163 case M_MODE_MAC: 168 case M_MODE_MAC:
164 if (record->event.pressed) { 169 if (record->event.pressed) {
165 SEND_STRING("OSX"); 170 send_string("OSX ");
171 send_string(get_highest_layer(default_layer_state) == _COLEMAK ? "COLEMAK" : "QWERTY");
166 } 172 }
167 break; 173 break;
168 } 174 }
diff --git a/users/ajp10304/ajp10304.h b/users/ajp10304/ajp10304.h
index ec1ed11c0..130c84160 100644
--- a/users/ajp10304/ajp10304.h
+++ b/users/ajp10304/ajp10304.h
@@ -18,6 +18,7 @@
18 18
19enum ajp10304_layers { 19enum ajp10304_layers {
20 _QWERTY, 20 _QWERTY,
21 _COLEMAK,
21 _MAC, 22 _MAC,
22 _LOWER, 23 _LOWER,
23 _MLWR, 24 _MLWR,
@@ -34,6 +35,7 @@ enum ajp10304_layers {
34 35
35enum ajp10304_keycodes { 36enum ajp10304_keycodes {
36 QWERTY = SAFE_RANGE, 37 QWERTY = SAFE_RANGE,
38 COLEMAK,
37 MAC, 39 MAC,
38 FUNC, 40 FUNC,
39 MFNC, 41 MFNC,
diff --git a/users/ajp10304/readme.md b/users/ajp10304/readme.md
index bfc39535c..0683f4238 100644
--- a/users/ajp10304/readme.md
+++ b/users/ajp10304/readme.md
@@ -37,6 +37,15 @@ Refer to the README.md of the keyboard you want to flash.
37| Shft | Z | X | C | V | B | N | M | ,< | .> | /? | Shft | 37| Shft | Z | X | C | V | B | N | M | ,< | .> | /? | Shft |
38| Fn | Ctrl | Alt | GUI |Lower | Bksp |Space |Raise | Shift| MENU | Ctrl | Fn2 | 38| Fn | Ctrl | Alt | GUI |Lower | Bksp |Space |Raise | Shift| MENU | Ctrl | Fn2 |
39 39
40##### Main Colemak-DHm Layer
41
42| | | | | | | | | | | | |
43| ---- |:----:| :---:|:---:|:-----:|:----:|:-----:|:-----:|:-----:|:----:|:----:| ----:|
44| Esc | Q | W | F | P | B | J | L | U | Y | ;: | Bksp |
45| Tab | A | R | S | T | G | M | N | E | I | O | Enter|
46| Shft | Z | X | C | D | V | K | H | ,< | .> | /? | Shft |
47| Fn | Ctrl | Alt | GUI | Lower | Bksp | Space | Raise | Shift | MENU | Ctrl | Fn2 |
48
40##### Function Layer 49##### Function Layer
41Activated when `fn` held in the above `qwerty` layer. 50Activated when `fn` held in the above `qwerty` layer.
42 51
@@ -88,12 +97,12 @@ To finish the recording, press STOP. To replay the macro, press either PLAY1 or
88* MAC: Toggle MAC OS extensions to layers. This allows MLWR to be enabled with LOWER, 97* MAC: Toggle MAC OS extensions to layers. This allows MLWR to be enabled with LOWER,
89MRSE with RAISE, MFNC with FUNC and MFNC2 with FUNC2 respectively. 98MRSE with RAISE, MFNC with FUNC and MFNC2 with FUNC2 respectively.
90 99
91| | | | | | | | | | | | | 100| | | | | | | | | | | | |
92| :---: |:----:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| 101| :---: |:----:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| :---:| :---:|:-------:|
93| ???? | Reset|Qwerty| | | REC1 | REC2 | | | | | Del | 102| ???? | Reset|Qwerty| | | REC1 | REC2 | | | | | Del |
94| CAPS | | | | | PLAY1|PLAY2 | Mute | Vol+ | Play | | | 103| CAPS | | | | | PLAY1|PLAY2 | Mute | Vol+ | Play | | Qwerty |
95| MAC | | | | | STOP1|STOP2 | Prev | Vol- | Next | | | 104| MAC | | | | | STOP1|STOP2 | Prev | Vol- | Next | | Colemak |
96| | | | | | | | | DYN | | | | 105| | | | | | | | | DYN | | | |
97 106
98##### Function 2 Layer 107##### Function 2 Layer
99Activated when `fn` held in the above `qwerty` layer. 108Activated when `fn` held in the above `qwerty` layer.