Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify unicode input mode change and CTRL and GUI swapping #14874

Merged
merged 2 commits into from
Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions layouts/community/ortho_5x12/riblee/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |------+------+------+------+------+-------------+------+------+------+------+------|
* | | |Mu mod|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| HUN |Wrkmn |
* |------+------+------+------+------+------|------+------+------+------+------+------|
* | | | | | | | NKRO | Swap |Un swp|UC Mod| | |
* | | | | | | | NKRO | Mac |Linux | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------'
*/
[_ADJUST] = LAYOUT_ortho_5x12(
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, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,KC_INS, KC_PSCR, KC_DEL,
_______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, HUNGARIAN, WORKMAN,
_______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, UC_MOD, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
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, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF, KC_INS, KC_PSCR, KC_DEL,
_______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, HUNGARIAN, WORKMAN,
_______, _______, _______, _______, _______, _______, NK_TOGG, MAC, LINUX, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)

};
14 changes: 14 additions & 0 deletions users/riblee/riblee.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,20 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
break;
case MAC:
riblee marked this conversation as resolved.
Show resolved Hide resolved
set_unicode_input_mode(UC_MAC);
keymap_config.raw = eeconfig_read_keymap();
keymap_config.swap_lctl_lgui = false;
eeconfig_update_keymap(keymap_config.raw);
clear_keyboard();
break;
case LINUX:
set_unicode_input_mode(UC_LNX);
keymap_config.raw = eeconfig_read_keymap();
keymap_config.swap_lctl_lgui = true;
eeconfig_update_keymap(keymap_config.raw);
clear_keyboard();
break;
}
return true;
};
Expand Down
4 changes: 3 additions & 1 deletion users/riblee/riblee.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ enum custom_keycodes {
COLEMAK,
DVORAK,
WORKMAN,
BACKLIT
BACKLIT,
MAC,
LINUX
};

#define LOWER MO(_LOWER)
Expand Down