[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
// Useful tapdance functions!
|
|
|
|
|
|
|
|
#include "tapdances.h"
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
tap_dance_action_t tap_dance_actions[] = {
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
[SHCAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, shift_reset)
|
|
|
|
,[TDGUI] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftgui, gui_reset)
|
|
|
|
,[TDGUI2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guictl, ubermod_reset)
|
|
|
|
,[SHENT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftenter, shift_reset)
|
|
|
|
,[SHNTC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftentercaps, shift_reset)
|
|
|
|
,[GCA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ubermod_mac, ubermod_reset) // GUI->CTL->ALT
|
|
|
|
,[AGC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ubermod2_mac, ubermod_reset) // ALT->GUI->CTL
|
|
|
|
,[SGCA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shift_and_mac, CASG_reset) // SG->SC->SA
|
|
|
|
,[GUCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guictl, ubermod_reset)
|
|
|
|
,[CAG] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ubermod, ubermod_reset) // CTL->ALT->GUI
|
|
|
|
,[ACG] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ubermod2, ubermod_reset) // ALT->GUI->CTL
|
|
|
|
,[SCAG] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shift_and, CASG_reset) // SG->SC->SA
|
|
|
|
,[DLTR] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, deleter, ubermod_reset) // backspace, backspace, alt backspace, gui backspace
|
|
|
|
,[FRBK2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, forward_back_mac, ubermod_reset)
|
|
|
|
,[CTLALL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctrl_all_mac, ubermod_reset) // C->CG->CA->CAG
|
|
|
|
,[CTLAND] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctrl_all, ubermod_reset) // C->CA->CG->CAG
|
|
|
|
,[FRBK] = ACTION_TAP_DANCE_DOUBLE(KC_WWW_BACK,KC_WWW_FORWARD)
|
|
|
|
};
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void caps(tap_dance_state_t *state, void *user_data) // Shift, Caps
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{ if (state->count >= 2) {register_code(KC_CAPS); unregister_code(KC_CAPS);}
|
|
|
|
else if (state->pressed) {register_mods(MOD_LSFT);} else {set_oneshot_mods(MOD_LSFT);}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void forward_back_mac(tap_dance_state_t *state, void *user_data) // G<-, then G->
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 1) {
|
|
|
|
tap_code16(G(KC_RGHT));
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
tap_code16(G(KC_LEFT));
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shiftgui(tap_dance_state_t *state, void *user_data) // G->SG
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LSFT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void guictl(tap_dance_state_t *state, void *user_data) // G->GC
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL | MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void deleter(tap_dance_state_t *state, void *user_data) // bkspc -> delwrd -> delline
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 3) {
|
|
|
|
tap_code16(G(KC_BSPC));
|
|
|
|
}
|
|
|
|
else if (state->count > 2) {
|
|
|
|
tap_code16(A(KC_BSPC));
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
tap_code(KC_BSPC);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ubermod(tap_dance_state_t *state, void *user_data) // CTL->ALT->GUI
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ubermod_mac(tap_dance_state_t *state, void *user_data) // GUI->CTL->ALT
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ubermod2(tap_dance_state_t *state, void *user_data) // ALT->CTL->GUI
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ubermod2_mac(tap_dance_state_t *state, void *user_data) // ALT->GUI->CTL
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shift_reset(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
unregister_mods(MOD_LSFT);
|
|
|
|
// clear_oneshot_mods();
|
|
|
|
}
|
2022-12-14 20:40:25 +00:00
|
|
|
void gui_reset(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
unregister_mods(MOD_LSFT | MOD_LGUI);
|
|
|
|
}
|
2022-12-14 20:40:25 +00:00
|
|
|
void CAS_reset(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT);
|
|
|
|
}
|
2022-12-14 20:40:25 +00:00
|
|
|
void CASG_reset(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI);
|
|
|
|
// clear_oneshot_mods();
|
|
|
|
}
|
2022-12-14 20:40:25 +00:00
|
|
|
void ubermod_reset(tap_dance_state_t *state, void *user_data) // AKA CAG_reset
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
unregister_mods(MOD_LCTL | MOD_LALT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shiftenter(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 1) {
|
|
|
|
tap_code(KC_ENT);
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LSFT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shiftentercaps(tap_dance_state_t *state, void *user_data)
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
tap_code(KC_CAPS);
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
tap_code(KC_ENT);
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LSFT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ctrl_all_mac(tap_dance_state_t *state, void *user_data) // C->CG->CAG
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LALT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL | MOD_LGUI | MOD_LALT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL | MOD_LGUI);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void ctrl_all(tap_dance_state_t *state, void *user_data) // C->CA->SC
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LSFT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL | MOD_LSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL | MOD_LALT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LCTL);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void alt_all(tap_dance_state_t *state, void *user_data) // A->SA->AC
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT | MOD_LCTL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT | MOD_LSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shift_and(tap_dance_state_t *state, void *user_data) // SC->SA->SG
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI | MOD_LSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT | MOD_LSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LSFT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LSFT | MOD_LCTL);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:40:25 +00:00
|
|
|
void shift_and_mac(tap_dance_state_t *state, void *user_data) // SG->SC->SA
|
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez
* repeating last commit.....
* repeating last commit on EDIT layer but swapping direction
exit
* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation
* adding mac desktop movement keys to Kyria layout
* Adding readmes to my keymaps
* Removing a png...
* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case
* Apply suggestions from code review
Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.
* Apply suggestions from code review
Additional improvements
* Moving tapdances.cpp to userspace as tapdances.c
* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.
* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap
* Apply suggestions from code review
I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.
* Moving encoder functions into their own userspace file
* Apply suggestions from code review
Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)
* updating encoder functions.
* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases
* Okay, refactor is well underway.
* refactored! Also improved led handling for ergodox and rgb handling for kyria
* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.
* moving LAYOUT_stack into kyria.h
* moving the alternate default layer down next to QWERTY
2020-06-29 17:23:13 +00:00
|
|
|
{
|
|
|
|
if (state->count > 1) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LALT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LALT | MOD_LSFT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->count > 2) {
|
|
|
|
if (state->pressed) {
|
|
|
|
register_mods(MOD_LCTL | MOD_LSFT);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LSFT | MOD_LCTL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (state->pressed) {
|
|
|
|
register_mods(MOD_LSFT | MOD_LGUI);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set_oneshot_mods(MOD_LGUI | MOD_LSFT);
|
|
|
|
}
|
|
|
|
reset_tap_dance(state);
|
|
|
|
}
|