Keymap: Adding new functionality to personal keymap, smart macros (#4159)
* Added base keymap * Added initial layers and mirrored most of Pok3r behavior. * Some stuff for Space Captain * Added new Marianas keymap for DZ60 * Included suggestions to remove unnecessary line regarding MODS_CTRL_MASK, and added names for layers. Added enum to define names for layers, and removed unused #DEFINE * Added DVORAK and COLEMAK * Caps + enter + space for flashing mode. * Added RGB status * added flash script * Changed lighting modes to make layers more apparent * fixed issue with not being able to exit gaming mode. * Added abbreviation constructor * Changed lighting modes to make layers more apparent * fixed issue with not being able to exit gaming mode. * Added abbreviation constructor * Fixed bug with SQL Table Macro generator. * restructured file. No Logical changes. * literals only for smart macros * removed extraneous pointer declaration. * Smart Macros * Added Makefile and header file * extended smart macros to be able to cover the whole alphas. * removed non-relavent keymaps. * didn't mean to include this guy.
This commit is contained in:
TheOneTrueTrench
committed by
Drashna Jaelre
parent
dad79cafcd
commit
4a7baaaf50
File diff suppressed because it is too large
Load Diff
103
keyboards/dz60/keymaps/marianas/keymap.h
Normal file
103
keyboards/dz60/keymaps/marianas/keymap.h
Normal file
@ -0,0 +1,103 @@
|
||||
//Control
|
||||
#define MO_FNLR MO(FN_LAYER)
|
||||
#define BACKSPC KC_BSPC
|
||||
#define ENTER_OR_SQL LT(SQLMACROS,KC_ENT)
|
||||
#define ESCAP KC_ESC
|
||||
#define PSCR KC_PSCREEN
|
||||
#define SCRL KC_SCROLLLOCK
|
||||
#define PAUS KC_PAUSE
|
||||
#define NSRT KC_INSERT
|
||||
#define HOME KC_HOME
|
||||
#define PGUP KC_PGUP
|
||||
#define PGDN KC_PGDN
|
||||
#define END_ KC_END
|
||||
#define DELT KC_DELETE
|
||||
#define UPUP KC_UP
|
||||
#define D_WN KC_DOWN
|
||||
#define LEFT KC_LEFT
|
||||
#define RGHT KC_RIGHT
|
||||
|
||||
//KEYPAD
|
||||
#define KP_1 KC_KP_1
|
||||
#define KP_2 KC_KP_2
|
||||
#define KP_3 KC_KP_3
|
||||
#define KP_4 KC_KP_4
|
||||
#define KP_5 KC_KP_5
|
||||
#define KP_6 KC_KP_6
|
||||
#define KP_7 KC_KP_7
|
||||
#define KP_8 KC_KP_8
|
||||
#define KP_9 KC_KP_9
|
||||
#define KP_0 KC_KP_0
|
||||
#define NMLK KC_NUMLOCK
|
||||
#define STAR KC_KP_ASTERISK
|
||||
#define KSSH KC_KP_SLASH
|
||||
#define KMIN KC_KP_MINUS
|
||||
#define PLUS KC_KP_PLUS
|
||||
#define KNTR KC_KP_ENTER
|
||||
#define KDOT KC_KP_DOT
|
||||
|
||||
//Modifiers
|
||||
#define CTLL KC_LCTL
|
||||
#define LEFTSHFT KC_LSPO
|
||||
#define WINL KC_LGUI
|
||||
#define ALTL KC_LALT
|
||||
#define CTLR KC_RCTL
|
||||
#define RIGHT_SHIFT__PAREN KC_RSPC
|
||||
#define WINR KC_RGUI
|
||||
#define ALTR KC_RALT
|
||||
#define APPR KC_APP
|
||||
|
||||
|
||||
//Punctuation
|
||||
#define CMMA KC_COMM
|
||||
#define PRRD KC_DOT
|
||||
#define SLSH KC_SLSH
|
||||
#define QUOT KC_QUOT
|
||||
#define COLN KC_SCLN
|
||||
#define LBRC KC_LBRC
|
||||
#define RBRC KC_RBRC
|
||||
#define EQUL KC_EQL
|
||||
#define MNUS KC_MINS
|
||||
#define BSLASH KC_BSLS
|
||||
|
||||
//Layers
|
||||
#define QWRTY TO(QWERTY)
|
||||
#define NAVS TO(NAV_CLUSTER)
|
||||
#define GAME TO(GAMING)
|
||||
|
||||
//Space
|
||||
#define ____ KC_TRNS
|
||||
#define _____ KC_TRNS
|
||||
#define ______ KC_TRNS
|
||||
#define _______ KC_TRNS
|
||||
#define ________ KC_TRNS
|
||||
#define ___________ KC_TRNS
|
||||
#define _________________ KC_TRNS
|
||||
#define SPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACE KC_SPC
|
||||
#define KCNO KC_NO
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define macroTapsLen 32
|
||||
#define tableNameListLen 32
|
||||
#define charCountLen 32
|
||||
|
||||
void initStringData(void);
|
||||
uint32_t layer_state_set_user(uint32_t state);
|
||||
bool containsCode(uint16_t kc);
|
||||
bool lastCodeIs(uint16_t kc);
|
||||
bool last2CodeAre(uint16_t kc);
|
||||
bool last2CodesAre(uint16_t kc, uint16_t kc2);
|
||||
void addKeyCode(uint16_t kc);
|
||||
void eraseKeyCodes(void);
|
||||
void eraseCharCounts(void);
|
||||
void printTableAbbreviation(void);
|
||||
void eraseTableAbbreviation(void);
|
||||
void printString(char* str);
|
||||
void printStringAndQueueChar(char* str);
|
||||
void ReplaceString(char *orig, char *repl);
|
||||
void deletePrev(void);
|
||||
void processSmartMacroTap(uint16_t kc);
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record);
|
17
keyboards/dz60/keymaps/marianas/rules.mk
Normal file
17
keyboards/dz60/keymaps/marianas/rules.mk
Normal file
@ -0,0 +1,17 @@
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
|
||||
|
||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = no # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
TAP_DANCE_ENABLE = no
|
||||
AUTO_SHIFT_ENABLE = no
|
Reference in New Issue
Block a user