Switch to Emoji layer using Punc + greek
This commit is contained in:
parent
4586b19be3
commit
4c05e39a02
1 changed files with 4 additions and 20 deletions
|
@ -878,22 +878,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// press both Supers to activate EMOJI layer
|
|
||||||
case KC_LGUI:
|
|
||||||
case KC_RGUI:
|
|
||||||
;
|
|
||||||
bool lgui = keyboard_report->mods & MOD_BIT(KC_LGUI);
|
|
||||||
bool rgui = keyboard_report->mods & MOD_BIT(KC_RGUI);
|
|
||||||
if (record->event.pressed) {
|
|
||||||
if (lgui ^ rgui) { // if only one super was pressed
|
|
||||||
layer_on(_EMOJI);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
layer_off(_EMOJI);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
// QWERTZ style comma and dot: semicolon and colon when shifted
|
// QWERTZ style comma and dot: semicolon and colon when shifted
|
||||||
case KC_COMM:
|
case KC_COMM:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
|
@ -968,10 +952,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
case PUNC:
|
case PUNC:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
layer_on(_PUNC);
|
layer_on(_PUNC);
|
||||||
update_tri_layer(_PUNC, _GREEKL, _GUI);
|
update_tri_layer(_PUNC, _GREEKL, _EMOJI);
|
||||||
} else {
|
} else {
|
||||||
layer_off(_PUNC);
|
layer_off(_PUNC);
|
||||||
update_tri_layer(_PUNC, _GREEKL, _GUI);
|
update_tri_layer(_PUNC, _GREEKL, _EMOJI);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
@ -984,12 +968,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
} else {
|
} else {
|
||||||
layer_on(_GREEKL);
|
layer_on(_GREEKL);
|
||||||
layer_off(_GREEKU);
|
layer_off(_GREEKU);
|
||||||
update_tri_layer(_PUNC, _GREEKL, _GUI);
|
update_tri_layer(_PUNC, _GREEKL, _EMOJI);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
layer_off(_GREEKU);
|
layer_off(_GREEKU);
|
||||||
layer_off(_GREEKL);
|
layer_off(_GREEKL);
|
||||||
update_tri_layer(_PUNC, _GREEKL, _GUI);
|
update_tri_layer(_PUNC, _GREEKL, _EMOJI);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue