aboutsummaryrefslogtreecommitdiff
path: root/users/ajp10304/ajp10304.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/ajp10304/ajp10304.c')
-rw-r--r--users/ajp10304/ajp10304.c10
1 files changed, 8 insertions, 2 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 }