From 464528faaff1c968e06cd439bb8f9b1361d1bef6 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 18 Jul 2022 10:02:04 -0700 Subject: [PATCH] Improved Russian layout --- .../keymaps/default/layers/russian.h | 16 ++++---- .../keymaps/default/layers/symbols_ru.h | 39 +++++++++++++++++++ 2 files changed, 47 insertions(+), 8 deletions(-) create mode 100644 keyboards/betalupi_ergodox/keymaps/default/layers/symbols_ru.h diff --git a/keyboards/betalupi_ergodox/keymaps/default/layers/russian.h b/keyboards/betalupi_ergodox/keymaps/default/layers/russian.h index b8ceb72..0cd0fb9 100644 --- a/keyboards/betalupi_ergodox/keymaps/default/layers/russian.h +++ b/keyboards/betalupi_ergodox/keymaps/default/layers/russian.h @@ -2,22 +2,22 @@ #include "keymap.h" #define LAYER_RUSSIAN LAYOUT_ergodox(\ - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,\ + KC_TRANSPARENT, RU_1, RU_2, RU_3, RU_4, RU_5, KC_TRANSPARENT,\ 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,\ M_RU_CTRL, RU_ZE, RU_YA, RU_TSE, RU_VE, RU_BE, RU_E,\ KC_TRANSPARENT, KC_TRANSPARENT, KC_LALT, KC_TRANSPARENT, KC_TRANSPARENT,\ \ - KC_TRANSPARENT, KC_TRANSPARENT,\ - KC_TRANSPARENT,\ + KC_TRANSPARENT, KC_TRANSPARENT,\ + KC_TRANSPARENT,\ KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,\ \ \ - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, RU_NUM, RU_RUBL, KC_TRANSPARENT,\ - RU_SOFT, RU_U, RU_YU, RU_I, RU_O, RU_SHCH, KC_TRANSPARENT,\ - RU_HA, RU_ZHE, RU_KA, KC_TRANSPARENT, RU_EL, KC_TRANSPARENT,\ - RU_HARD, RU_EN, RU_EM, RU_PE, RU_YERU, RU_SHTI, KC_TRANSPARENT,\ - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,\ + KC_TRANSPARENT, RU_6, RU_7, RU_8, RU_9, RU_0, KC_TRANSPARENT,\ + RU_SOFT, RU_U, RU_YU, RU_I, RU_O, RU_SHCH, KC_TRANSPARENT,\ + RU_HA, RU_ZHE, RU_KA, MO(LAYER_SYMBOLS_RU_IDX), RU_EL, KC_NO,\ + RU_HARD, RU_EN, RU_EM, RU_PE, RU_YERU, RU_SHTI, KC_TRANSPARENT,\ + KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,\ \ KC_TRANSPARENT, TO(LAYER_MAIN_IDX),\ KC_TRANSPARENT,\ diff --git a/keyboards/betalupi_ergodox/keymaps/default/layers/symbols_ru.h b/keyboards/betalupi_ergodox/keymaps/default/layers/symbols_ru.h new file mode 100644 index 0000000..50db49d --- /dev/null +++ b/keyboards/betalupi_ergodox/keymaps/default/layers/symbols_ru.h @@ -0,0 +1,39 @@ +#pragma once +#include "keymap.h" + +#define LAYER_SYMBOLS_RU LAYOUT_ergodox(\ + KC_NO, RU_EXLM, RU_DQUO, RU_NUM, RU_SCLN, RU_PERC, KC_NO,\ + KC_NO, KC_NO, RU_LPRN, RU_RPRN, RU_QUES, KC_NO, KC_NO,\ + KC_NO, KC_NO, KC_NO, RU_COMM, RU_DOT, RU_DQUO,\ + KC_NO, KC_NO, KC_NO, KC_NO, RU_EXLM, KC_NO, KC_NO,\ + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,\ +\ + KC_NO, KC_NO,\ + KC_NO,\ + KC_NO, KC_NO, KC_NO,\ +\ +\ + KC_NO, RU_COLN, RU_QUES, RU_ASTR, RU_LPRN, RU_RPRN, KC_NO,\ + KC_NO, KC_NO, KC_NO, RU_SLSH, KC_NO, RU_BSLS, KC_NO,\ + RU_UNDS, RU_MINS, RU_COLN, KC_TRANSPARENT, KC_NO, KC_NO,\ + KC_NO, RU_EQL, RU_PLUS, RU_SCLN, KC_NO, KC_NO, KC_NO,\ + KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,\ +\ + KC_NO, KC_NO,\ + KC_NO,\ + KC_NO, KC_NO, KC_NO\ +) + +#define LAYER_SYMBOLS_RU_LEDS LEDS_ergodox(\ + LC_OFF, LC_OFF, LC_OFF, LC_OFF, LC_OFF, \ + LC_OFF, LC_CYAN, LC_CYAN, LC_PINK, LC_OFF, \ + LC_OFF, LC_OFF, LC_PINK, LC_PINK, LC_PINK, \ + LC_OFF, LC_OFF, LC_OFF, LC_PINK, LC_OFF, \ + LC_OFF, LC_OFF, LC_OFF, LC_OFF, \ + \ + LC_OFF, LC_OFF, LC_OFF, LC_OFF, LC_OFF, \ + LC_OFF, LC_OFF, LC_CYAN, LC_OFF, LC_CYAN, \ + LC_CYAN, LC_GREEN, LC_PINK, LC_ORANGE, LC_OFF, \ + LC_GREEN, LC_GREEN, LC_PINK, LC_OFF, LC_OFF, \ + LC_OFF, LC_OFF, LC_OFF, LC_OFF \ +)