summaryrefslogtreecommitdiffstats
path: root/users/ajp10304/ajp10304.c
diff options
context:
space:
mode:
authorAlan Pocklington <a.Pocklington@Gmail.com>2022-01-11 00:57:41 +0000
committerGitHub <noreply@github.com>2022-01-10 16:57:41 -0800
commitdce611bc9fd6c6d47e6c5d935ca263ff50a5afc2 (patch)
treec9d8cc07320ebb346366c35d3a65b9c71e6130ea /users/ajp10304/ajp10304.c
parent069ef7eb9eb454f47016ca8b7688b647a1e56583 (diff)
[Keymap] AJP10304 layout, add Colemak-DHm layer (#15582)
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 dd13787d63..b8729b94d7 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) {
set_single_persistent_default_layer(_QWERTY);
}
return false;
+ case COLEMAK:
+ if (record->event.pressed) {
+ set_single_persistent_default_layer(_COLEMAK);
+ }
case LOWER:
if (record->event.pressed) {
layer_on(_LOWER);
@@ -157,12 +161,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case M_MODE:
if (record->event.pressed) {
- SEND_STRING("PC");
+ send_string("PC ");
+ send_string(get_highest_layer(default_layer_state) == _COLEMAK ? "COLEMAK" : "QWERTY");
}
break;
case M_MODE_MAC:
if (record->event.pressed) {
- SEND_STRING("OSX");
+ send_string("OSX ");
+ send_string(get_highest_layer(default_layer_state) == _COLEMAK ? "COLEMAK" : "QWERTY");
}
break;
}