~ruther/qmk_firmware

59a5f7de3d37fa23d6058f226997d30ceed566d6 — Rutherther 8 months ago 254bd40
fix: games layer toggle, add possibility for escape and alt
1 files changed, 17 insertions(+), 17 deletions(-)

M keyboards/splitkb/kyria/keymaps/rutherther/keymap.c
M keyboards/splitkb/kyria/keymaps/rutherther/keymap.c => keyboards/splitkb/kyria/keymaps/rutherther/keymap.c +17 -17
@@ 4,14 4,14 @@

enum layers {
  _QWERTY = 0,
  _PLAIN,
  _GAMES,
  _SYM,
  _NAV,
  _FUNCTION,
  _NUM,
  _GUI,
  _GAMES,
  _MEDIA,
  _PLAIN,
};

enum custom_keycodes {


@@ 28,7 28,7 @@ enum custom_keycodes {
#define GUI      MO(_GUI)

#define GAMES    TO(_GAMES)
#define QWERTY   TO(_GAMES)
#define QWERTY   TO(_QWERTY)

#define CTL_ESC  MT(MOD_LCTL, KC_ESC)
#define CTL_QUOT MT(MOD_LCTL, KC_QUOTE)


@@ 63,6 63,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
                                  QK_LOCK,  CZ_ACUTED, QK_REP,   ALT_SPC,  NUM,                GUI,      ALT_ENT,  KC_BSPC,  CZ_CARETED, KC_APP
  ),

  [_PLAIN] = LAYOUT(
    KC_TAB,   KC_Q,     KC_W,     KC_E,     KC_R,      KC_T,                                                       KC_Y,     KC_U,       KC_I,     KC_O,     KC_P,     KC_BSLS,
    KC_LCTL,  KC_A,     KC_S,     KC_D,     KC_F,      KC_G,                                                       KC_H,     KC_J,       KC_K,     KC_L,     KC_SCLN,  KC_QUOT,
    OSM_LSFT, KC_Z,     KC_X,     KC_C,     KC_V,      KC_B,    _______,    MEDIA,             FKEYS,    _______,  KC_N,     KC_M,       KC_COMM,  KC_DOT,   KC_SLSH,  OSM_RSFT,
                                  _______,  _______,  _______,  _______,  _______,             _______,  _______,  _______,  _______,    _______
  ),

  [_GAMES] = LAYOUT(
    KC_TAB,   KC_Q,     KC_W,     KC_E,     KC_R,      KC_T,                                                       KC_Y,     KC_U,       KC_I,     KC_O,     KC_P,     KC_BSLS,
    KC_LCTL,  KC_A,     KC_S,     KC_D,     KC_F,      KC_G,                                                       KC_H,     KC_J,       KC_K,     KC_L,     KC_SCLN,  KC_QUOT,
    OSM_LSFT, KC_Z,     KC_X,     KC_C,     KC_V,      KC_B,    KC_LALT,    MEDIA,              FKEYS,    QWERTY,  KC_N,     KC_M,       KC_COMM,  KC_DOT,   KC_SLSH,  OSM_RSFT,
                                  _______,  _______,   NAV,     KC_SPC,   _______,                SYM,    KC_ENT,  _______,  _______,    KC_ESC
  ),

  [_NAV] = LAYOUT(
    _______,  _______,  _______,  _______,  _______,  _______,                                                    KC_HOME,  KC_PGDN,  KC_PGUP,  KC_END,   KC_INS,   KC_DEL,
    _______,  KC_LGUI,  KC_LALT,  KC_LCTL,  KC_LSFT,  _______,                                                    KC_LEFT,  KC_DOWN,  KC_UP,    KC_RGHT,  _______,  _______,


@@ 97,20 111,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    _______,  WM_MON3,  WM_WS(5), WM_WS(6), WM_WS(7), _______,  _______,  _______,            _______,  _______,  _______,  _______,  WM_KILL,  _______,  _______,  _______,
                                  _______,  _______,  _______,  _______,  _______,            QK_LOCK,  _______,  _______,  _______,  _______
  ),

  [_GAMES] = LAYOUT(
    KC_TAB,   KC_Q,     KC_W,     KC_E,     KC_R,      KC_T,                                                       KC_Y,     KC_U,       KC_I,     KC_O,     KC_P,     KC_BSLS,
    KC_LCTL,  KC_A,     KC_S,     KC_D,     KC_F,      KC_G,                                                       KC_H,     KC_J,       KC_K,     KC_L,     KC_SCLN,  KC_QUOT,
    OSM_LSFT, KC_Z,     KC_X,     KC_C,     KC_V,      KC_B,     QWERTY,   MEDIA,              FKEYS,    _______,  KC_N,     KC_M,       KC_COMM,  KC_DOT,   KC_SLSH,  OSM_RSFT,
                                  QK_LOCK,  CZ_ACUTED, KC_SPC,   QK_REP,   NUM,                GUI,      KC_BSPC,  KC_ENT,   CZ_CARETED, KC_APP
  ),

  [_PLAIN] = LAYOUT(
    KC_TAB,   KC_Q,     KC_W,     KC_E,     KC_R,      KC_T,                                                       KC_Y,     KC_U,       KC_I,     KC_O,     KC_P,     KC_BSLS,
    KC_LCTL,  KC_A,     KC_S,     KC_D,     KC_F,      KC_G,                                                       KC_H,     KC_J,       KC_K,     KC_L,     KC_SCLN,  KC_QUOT,
    OSM_LSFT, KC_Z,     KC_X,     KC_C,     KC_V,      KC_B,     GAMES,    MEDIA,              FKEYS,    _______,  KC_N,     KC_M,       KC_COMM,  KC_DOT,   KC_SLSH,  OSM_RSFT,
                                  QK_LOCK,  CZ_ACUTED, KC_SPC,   QK_REP,   NUM,                GUI,      KC_BSPC,  KC_ENT,   CZ_CARETED, KC_APP
  ),
};

void keyboard_pre_init_user(void) {

Do not follow this link