mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-19 08:03:22 +00:00
a2cec0594b
* Start to standardize macro timer * Update Fractal layout Specifically, limit the RGB Lighting, since it's too many for the power, and only have the KITT annimation on the front * Update Iris keymap to use I2C for transport * Remove TAP_CODE_DELAY from keyboard in favor of global setting * Remove Woodpad Since it\'s no longer in my possession * Only enable LTO on AVR boards * Run matrix_scans while doing startup light * Run matrix_scan to get split keyboard code synced properly * Fix rgb mode * Remove custom debouncing settings * Make RGB Light Startup Animation optional * Fix opt def * Remove extra tap code delay value * Fix references to keebio boards * Add support for LP Iris keyboard * Add backlight code * Make startup animation optional * Update gitlab ci script * Remove port declaration * Revert avrgcc changes to gitlab ci file * Don't re-set mods * Remove MACRO_TIMER define * Add custom name for crkbd * Add name for Prime M pad * Add names for ortho 4x12 boards * Add some additional handling for rgb init * Change thumb clusters on ergodox * Switch Orthodox to I2C * Fix Space in ergodox keymap * Use OSL for ergodox layout * Ugh, can't find a good layout * Fix typo * Fix up animation startup * Cries in AVR * Fix makefiles for ergodox ez boards * Add support for "secret songs" in my userspace * Reset debounce to 5ms for Ergodox EZ * Fix gitlab CI yaml file * More crying in AVR * Cannot use rgb light and rgb matrix at the same time due to the WS2812 rgb matrix PR until the "Coexistance" PR is merged * Update ODox for split common and i2c * Add split config * Impement Split code * Add support for xscorpion OLED code * Add OLED display config * Fix OLED screen font * Get OLED set up in vertical mode * Remove old OLED code * add per key support for crkbd * Fix split changes * RGB Tweeaks * More OLED tweaks * Fix rotation stuff * Fix more OLED stuff * Remove custom Debounce from Ergodox layout since it's no longer needed
108 lines
3.0 KiB
C
108 lines
3.0 KiB
C
#pragma once
|
|
#include "drashna.h"
|
|
|
|
#if defined(KEYMAP_SAFE_RANGE)
|
|
#define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
|
|
#else
|
|
#define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
|
|
#endif
|
|
|
|
enum userspace_custom_keycodes {
|
|
VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
|
|
KC_QWERTY, // Sets default layer to QWERTY
|
|
KC_COLEMAK, // Sets default layer to COLEMAK
|
|
KC_DVORAK, // Sets default layer to DVORAK
|
|
KC_WORKMAN, // Sets default layer to WORKMAN
|
|
KC_NORMAN, // Sets default layer to NORMAN
|
|
KC_MALTRON, // Sets default layer to MALTRON
|
|
KC_EUCALYN, // Sets default layer to EUCALYN
|
|
KC_CARPLAX, // Sets default layer to CARPLAX
|
|
KC_DIABLO_CLEAR, // Clears all Diablo Timers
|
|
KC_OVERWATCH, // Toggles game macro input mode (so in OW, it defaults to game chat)
|
|
KC_SALT, // See drashna.c for details
|
|
KC_MORESALT,
|
|
KC_SALTHARD,
|
|
KC_GOODGAME,
|
|
KC_SYMM,
|
|
KC_JUSTGAME,
|
|
KC_GLHF,
|
|
KC_TORB,
|
|
KC_AIM,
|
|
KC_C9,
|
|
KC_GGEZ,
|
|
KC_MAKE, // Run keyboard's customized make command
|
|
KC_RGB_T, // Toggles RGB Layer Indication mode
|
|
KC_SECRET_1, // test1
|
|
KC_SECRET_2, // test2
|
|
KC_SECRET_3, // test3
|
|
KC_SECRET_4, // test4
|
|
KC_SECRET_5, // test5
|
|
KC_CCCV, // Hold to copy, tap to paste
|
|
KC_NUKE, // NUCLEAR LAUNCH DETECTED!!!
|
|
UC_FLIP, // (ಠ痊ಠ)┻━┻
|
|
UC_TABL, // ┬─┬ノ( º _ ºノ)
|
|
UC_SHRG, // ¯\_(ツ)_/¯
|
|
UC_DISA, // ಠ_ಠ
|
|
NEW_SAFE_RANGE //use "NEWPLACEHOLDER for keymap specific codes
|
|
};
|
|
|
|
bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
|
|
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
|
|
|
|
|
|
|
|
#define LOWER MO(_LOWER)
|
|
#define RAISE MO(_RAISE)
|
|
#define ADJUST MO(_ADJUST)
|
|
#define TG_MODS TG(_MODS)
|
|
#define TG_GAME TG(_GAMEPAD)
|
|
#define OS_LWR OSL(_LOWER)
|
|
#define OS_RSE OSL(_RAISE)
|
|
|
|
#define KC_SEC1 KC_SECRET_1
|
|
#define KC_SEC2 KC_SECRET_2
|
|
#define KC_SEC3 KC_SECRET_3
|
|
#define KC_SEC4 KC_SECRET_4
|
|
#define KC_SEC5 KC_SECRET_5
|
|
|
|
#define QWERTY KC_QWERTY
|
|
#define DVORAK KC_DVORAK
|
|
#define COLEMAK KC_COLEMAK
|
|
#define WORKMAN KC_WORKMAN
|
|
|
|
#define KC_RESET RESET
|
|
#define KC_RST KC_RESET
|
|
|
|
#ifdef SWAP_HANDS_ENABLE
|
|
#define KC_C1R3 SH_TT
|
|
#else // SWAP_HANDS_ENABLE
|
|
#define KC_C1R3 KC_BSPC
|
|
#endif // SWAP_HANDS_ENABLE
|
|
|
|
#define BK_LWER LT(_LOWER, KC_BSPC)
|
|
#define SP_LWER LT(_LOWER, KC_SPC)
|
|
#define DL_RAIS LT(_RAISE, KC_DEL)
|
|
#define ET_RAIS LT(_RAISE, KC_ENTER)
|
|
|
|
/* OSM keycodes, to keep things clean and easy to change */
|
|
#define KC_MLSF OSM(MOD_LSFT)
|
|
#define KC_MRSF OSM(MOD_RSFT)
|
|
|
|
#define OS_LGUI OSM(MOD_LGUI)
|
|
#define OS_RGUI OSM(MOD_RGUI)
|
|
#define OS_LSFT OSM(MOD_LSFT)
|
|
#define OS_RSFT OSM(MOD_RSFT)
|
|
#define OS_LCTL OSM(MOD_LCTL)
|
|
#define OS_RCTL OSM(MOD_RCTL)
|
|
#define OS_LALT OSM(MOD_LALT)
|
|
#define OS_RALT OSM(MOD_RALT)
|
|
#define OS_MEH OSM(MOD_MEH)
|
|
#define OS_HYPR OSM(MOD_HYPR)
|
|
|
|
#define ALT_APP ALT_T(KC_APP)
|
|
|
|
#define MG_NKRO MAGIC_TOGGLE_NKRO
|
|
|
|
#define UC_IRNY UC(0x2E2E)
|
|
#define UC_CLUE UC(0x203D)
|