parent
7c9d5ace14
commit
5da348b2d0
@ -0,0 +1,7 @@
|
|||||||
|
Copyright 2018 Joe Wasson <info@talljoe.com> @talljoe
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -0,0 +1 @@
|
|||||||
|
SRC += talljoe.c
|
@ -0,0 +1,38 @@
|
|||||||
|
#include "talljoe.h"
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
if (!eeconfig_is_enabled()) {
|
||||||
|
eeconfig_init();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t default_layer_state_set_kb(uint32_t state) {
|
||||||
|
// persist changes to default layers
|
||||||
|
eeconfig_update_default_layer(state);
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
__attribute__ ((weak))
|
||||||
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case KC_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
|
||||||
|
if (!record->event.pressed) {
|
||||||
|
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
|
||||||
|
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
||||||
|
":dfu"
|
||||||
|
#elif defined(BOOTLOADER_HALFKAY)
|
||||||
|
":teensy"
|
||||||
|
#elif defined(BOOTLOADER_CATERINA)
|
||||||
|
":avrdude"
|
||||||
|
#endif
|
||||||
|
SS_TAP(X_ENTER));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return process_record_keymap(keycode, record);
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
#ifndef USERSPACE
|
||||||
|
#define USERSPACE
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define PREVENT_STUCK_MODIFIERS
|
||||||
|
|
||||||
|
enum layers {
|
||||||
|
_BASE = 0,
|
||||||
|
_WORKMAN,
|
||||||
|
_NORMAN,
|
||||||
|
_DVORAK,
|
||||||
|
_COLMAK,
|
||||||
|
_GAME,
|
||||||
|
_NAV,
|
||||||
|
_ADJUST,
|
||||||
|
_RESET,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
#define XXXXXXX KC_NO
|
||||||
|
|
||||||
|
#define NV_SPC LT(_NAV, KC_SPC)
|
||||||
|
#define AD_GRV LT(_ADJUST, KC_GRV)
|
||||||
|
|
||||||
|
#define MO_NAV MO(_NAV)
|
||||||
|
#define MO_ADJ MO(_ADJUST)
|
||||||
|
#define MO_RST MO(_RESET)
|
||||||
|
#define TG_ADJ TG(_ADJUST)
|
||||||
|
#define TG_GAME TG(_GAME)
|
||||||
|
#define LY_QWER DF(_BASE)
|
||||||
|
#define LY_WORK DF(_WORKMAN)
|
||||||
|
#define LY_NRMN DF(_NORMAN)
|
||||||
|
#define LY_DVRK DF(_DVORAK)
|
||||||
|
#define LY_CLMK DF(_COLMAK)
|
||||||
|
#define TG_NKRO MAGIC_TOGGLE_NKRO
|
||||||
|
#define KC_PTT KC_F24
|
||||||
|
#define MS_MID KC_MS_BTN3
|
||||||
|
|
||||||
|
enum userspace_custom_keycodes {
|
||||||
|
KC_MAKE = SAFE_RANGE, // can always be here
|
||||||
|
NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in new issue