Fixed layer order

master
Mark 2022-07-20 19:09:10 -07:00
parent a4759176b1
commit 900d9a5d1d
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
7 changed files with 27 additions and 11 deletions

View File

@ -2,7 +2,6 @@
#define BETA_LAYER_MAGIC_MACRO BETA_LAYER(ARROWS) #define BETA_LAYER_MAGIC_MACRO BETA_LAYER(ARROWS)
#ifdef BETA_LAYER_KEYS #ifdef BETA_LAYER_KEYS
#define BETA_LAYER_CONTEXT_DATA LAYOUT_ergodox(\ #define BETA_LAYER_CONTEXT_DATA LAYOUT_ergodox(\
KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,\ KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,\

View File

@ -1,9 +1,25 @@
// ORDER MATTERS!
// Don't forget how QMK layers work...
//
// Learned that the hard way.
// First layer will be "default" layer in QMK.
// Second will have index 1, etc. See layers.h
// These MUST be first, since they activate other layers.
#include "main.h" #include "main.h"
#include "russian.h"
// The order of these doesn't really matter,
// since only one will be active at a time.
#include "symbols.h" #include "symbols.h"
#include "symbols_ru.h"
#include "arrows.h" #include "arrows.h"
#include "desktop.h" #include "desktop.h"
#include "fkeys.h" #include "fkeys.h"
#include "keyboard.h" #include "keyboard.h"
#include "numpad.h" #include "numpad.h"
#include "russian.h"
#include "symbols_ru.h"

View File

@ -21,8 +21,8 @@
KC_NO, KC_N, KC_M, KC_P, KC_DOT, KC_COMMA, TT(LAYER_FKEYS),\ KC_NO, KC_N, KC_M, KC_P, KC_DOT, KC_COMMA, TT(LAYER_FKEYS),\
KC_RIGHT, KC_NO, TO(LAYER_KEYBOARD), TO(LAYER_RUSSIAN), LGUI(KC_SPACE),\ KC_RIGHT, KC_NO, TO(LAYER_KEYBOARD), TO(LAYER_RUSSIAN), LGUI(KC_SPACE),\
\ \
KC_NO, KC_NO,\ KC_LNG1, KC_LNG2,\
KC_NO,\ KC_LNG3,\
KC_NO, KC_RSHIFT, KC_ENTER\ KC_NO, KC_RSHIFT, KC_ENTER\
) )

View File

@ -8,7 +8,7 @@
KC_TRANSPARENT, RU_CHE, RU_SHA, RU_IE, RU_ER, RU_TE, RU_YO,\ KC_TRANSPARENT, RU_CHE, RU_SHA, RU_IE, RU_ER, RU_TE, RU_YO,\
KC_TRANSPARENT, RU_A, RU_ES, RU_DE, RU_EF, RU_GHE,\ KC_TRANSPARENT, RU_A, RU_ES, RU_DE, RU_EF, RU_GHE,\
M_RU_CTRL, RU_ZE, RU_YA, RU_TSE, RU_VE, RU_BE, RU_E,\ M_RU_CTRL, RU_ZE, RU_YA, RU_TSE, RU_VE, RU_BE, RU_E,\
KC_TRANSPARENT, KC_TRANSPARENT, M_RU_ALT, KC_TRANSPARENT, KC_TRANSPARENT,\ KC_TRANSPARENT, KC_TRANSPARENT, M_RU_ALT, KC_TRANSPARENT, MO(LAYER_ARROWS),\
\ \
KC_TRANSPARENT, KC_TRANSPARENT,\ KC_TRANSPARENT, KC_TRANSPARENT,\
KC_TRANSPARENT,\ KC_TRANSPARENT,\

View File

@ -2,7 +2,6 @@
#define BETA_LAYER_MAGIC_MACRO BETA_LAYER(SYMBOLS_RU) #define BETA_LAYER_MAGIC_MACRO BETA_LAYER(SYMBOLS_RU)
#ifdef BETA_LAYER_KEYS #ifdef BETA_LAYER_KEYS
#define BETA_LAYER_CONTEXT_DATA LAYOUT_ergodox(\ #define BETA_LAYER_CONTEXT_DATA LAYOUT_ergodox(\
KC_NO, RU_EXLM, RU_DQUO, RU_NUM, RU_SCLN, RU_PERC, KC_NO,\ KC_NO, RU_EXLM, RU_DQUO, RU_NUM, RU_SCLN, RU_PERC, KC_NO,\

View File

@ -1,4 +1,3 @@
#include "keymap.h"
#include "layers.h" #include "layers.h"
@ -12,7 +11,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
#undef BETA_LAYER_KEYS #undef BETA_LAYER_KEYS
// Create led map array // Create led map array
#define BETA_LAYER_LEDS #define BETA_LAYER_LEDS
#define BETA_LAYER(name) [LAYER_##name##_LEDS] = BETA_LAYER_CONTEXT_DATA, #define BETA_LAYER(name) [LAYER_##name##_LEDS] = BETA_LAYER_CONTEXT_DATA,

View File

@ -1,3 +1,7 @@
#pragma once
// This header declares custom keycodes
#include "keymap.h"
#define LAYER_INCLUDE_FILE "definitions/layers.inc" #define LAYER_INCLUDE_FILE "definitions/layers.inc"
// Generate layer ids // Generate layer ids