summaryrefslogtreecommitdiffstats
path: root/users/ericgebhart/ericgebhart.c
diff options
context:
space:
mode:
authorEric Gebhart <e.a.gebhart@gmail.com>2020-04-28 11:58:42 +0200
committerGitHub <noreply@github.com>2020-04-28 02:58:42 -0700
commit485a0b0bc358b32ec042793a5195ced2c4cda7df (patch)
treef852b5d9e705bc224bd1dc9004ae494bf626f0d3 /users/ericgebhart/ericgebhart.c
parent23cfc4b14564fe6a5da8a6d3823f8f9bc52c2832 (diff)
[Keymap] Added Xd75 and viterbi keymaps,refactored my userspace. (#8776)
Diffstat (limited to 'users/ericgebhart/ericgebhart.c')
-rw-r--r--users/ericgebhart/ericgebhart.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/users/ericgebhart/ericgebhart.c b/users/ericgebhart/ericgebhart.c
index 69aa450e0a..76143c6ed1 100644
--- a/users/ericgebhart/ericgebhart.c
+++ b/users/ericgebhart/ericgebhart.c
@@ -14,6 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
#include "ericgebhart.h"
#include "quantum.h"
@@ -122,8 +123,6 @@ const uint8_t key_translations[][2][2] = {
[GR(DB_CIRC)] = {{BP_AT, MOD_BIT(KC_RALT)}, {BP_AT, MOD_BIT(KC_RALT)}},
[GR(DB_LESS)] = {{BP_LGIL, MOD_BIT(KC_RALT)}, {BP_LGIL, MOD_BIT(KC_RALT)}},
[GR(DB_GRTR)] = {{BP_RGIL, MOD_BIT(KC_RALT)}, {BP_RGIL, MOD_BIT(KC_RALT)}},
-
-
};
@@ -275,7 +274,7 @@ xprintf("KL: row: %u, column: %u, pressed: %u\n", record->event.key.col, record-
// to save on firmware space, since it's limited.
#ifdef MACROS_ENABLED
case KC_OVERWATCH: // Toggle's if we hit "ENTER" or "BACKSPACE" to input macros
- if (record->event.pressed) { userspace_config.is_overwatch ^= 1; eeprom_update_byte(EECONFIG_USERSPACE, userspace_config.raw); }
+ if (record->event.pressed) { userspace_config.is_overwatch ^= 1; eeprom_update_byte(EECONFIG_USER, userspace_config.raw); }
return false; break;
#endif // MACROS_ENABLED
@@ -304,7 +303,7 @@ xprintf("KL: row: %u, column: %u, pressed: %u\n", record->event.key.col, record-
case CLICKY_TOGGLE:
#ifdef AUDIO_CLICKY
userspace_config.clicky_enable = clicky_enable;
- eeprom_update_byte(EECONFIG_USERSPACE, userspace_config.raw);
+ eeprom_update_byte(EECONFIG_USER, userspace_config.raw);
#endif
break;
#ifdef UNICODE_ENABLE
@@ -390,13 +389,20 @@ void tap_dance_layer_switch (qk_tap_dance_state_t *state, void *user_data) {
if(on_qwerty())
layer_invert(SYMB);
else
- layer_invert(SYMB_ON_BEPO);
+ layer_invert(SYMB_ON_BEPO);
break;
case 2:
layer_invert(MDIA);
break;
case 3:
layer_invert(LAYERS);
+ break;
+ case 4:
+ if(on_qwerty())
+ layer_invert(KEYPAD);
+ else
+ layer_invert(KEYPAD_ON_BEPO);
+ break;
default:
break;
}