mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-25 10:44:59 +06:00
2b30776dd0
* Add issmirnov {user, ergodox, levinson} files. There are enough interesting QMK tricks in these layouts that it seems worth it to share with the broader community. Big thanks to Drashna for inspiration, as well as all the wonderful creators of QMK documentation. Some highlights: - Common layout shared between levinson and ergodox_ez - TAP_TOG macro for fast layer switching - Autogenerated keymaps ascii art with git hooks I will do my best to do periodic rolls here, but the source of truth will always be https://github.com/issmirnov/qmk-keebs * Incorporate review feedback. - Remove CLEAR_EEPROM in favor of built in EEP_RST - Remove custom handlers for audio on bootup and shutdown - Remove plethora of unneeded includes - Remove deprecated and dupliated config options HUGE thanks to drashna for the review! * Apply suggestions from code review Huge thanks to drashna@ for a very thorough review and the very useful suggestions. Co-Authored-By: Drashna Jaelre <drashna@live.com> * Remove unclear optimization This was an artifact from some other keymap I saw.
36 lines
881 B
C
36 lines
881 B
C
#pragma once
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
#include "rows.h"
|
|
|
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
|
// entirely and just use numbers
|
|
enum {
|
|
_QWERTY = 0,
|
|
_SYMB,
|
|
_NUMP,
|
|
_OVERWATCH,
|
|
_NAVI
|
|
};
|
|
|
|
enum custom_keycodes {
|
|
PLACEHOLDER = SAFE_RANGE,
|
|
TAP_TOG_LAYER,
|
|
CLEAR_EEPROM,
|
|
WKSP_LEFT, // Smart key that only activates when we are momentarily in a layer
|
|
WKSP_RIGHT, // Smart key that only activates when we are momentarily in a layer
|
|
};
|
|
|
|
|
|
#define LOWER MO(_SYMB)
|
|
#define RAISE MO(_NUMP)
|
|
|
|
#define CTL_SPC MT(MOD_LCTL, KC_SPC)
|
|
#define OSMSFT OSM(MOD_LSFT)
|
|
#define LOCK LGUI(KC_L)
|
|
#define MODSFT LSFT(KC_LGUI)
|
|
#define APPS LGUI(KC_SPC)
|