keyboard/qmk/users/bocaj/process_records.h

45 lines
1.6 KiB
C
Raw Normal View History

#pragma once
#include "bocaj.h"
#if defined(KEYMAP_SAFE_RANGE)
2020-12-25 20:21:40 +00:00
# define PLACEHOLDER_SAFE_RANGE KEYMAP_SAFE_RANGE
#else
2020-12-25 20:21:40 +00:00
# define PLACEHOLDER_SAFE_RANGE SAFE_RANGE
#endif
enum userspace_custom_keycodes {
2020-12-25 20:21:40 +00:00
VRSN = PLACEHOLDER_SAFE_RANGE, // Prints QMK Firmware and board info
KC_WORKMAN, // Sets default layer to WORKMAN
KC_QWERTY, // Sets default layer to QWERTY
// KC_COLEMAK, // Sets default layer to COLEMAK
// KC_DVORAK, // Sets default layer to DVORAK
KC_MAKE, // Run keyboard's customized make command
KC_RGB_T, // Toggles RGB Layer Indication mode
RGB_IDL, // RGB Idling animations
MC_ARRW, // ->
UC_FLIP, // (ಠ痊ಠ)┻━┻
UC_TABL, // ┬─┬ノ( º _ ºノ)
UC_SHRG, // ¯\_(ツ)_/¯
UC_DISA, // ಠ_ಠ
NEW_SAFE_RANGE // use "NEWPLACEHOLDER for keymap specific codes
};
2020-12-25 20:21:40 +00:00
bool process_record_secrets(uint16_t keycode, keyrecord_t *record);
bool process_record_keymap(uint16_t keycode, keyrecord_t *record);
2020-12-25 20:21:40 +00:00
#define QWERTY KC_QWERTY
#define WORKMAN KC_WORKMAN
2020-12-25 20:21:40 +00:00
#define KC_ARRW MC_ARRW
2020-12-25 20:21:40 +00:00
#define KC_RST RESET
2020-12-25 20:21:40 +00:00
#define MO_MOD MO(_MOD)
#define ALT_APP ALT_T(KC_APP)
#define HYP_LBK ALL_T(KC_LBRACKET)
#define MEH_RBK MEH_T(KC_RBRACKET)
#define HYP_LPR ALL_T(KC_LPRN)
#define MEH_RPR MEH_T(KC_RPRN)
2020-12-25 20:21:40 +00:00
#define MG_NKRO MAGIC_TOGGLE_NKRO