1
0
Fork 0
qmk_firmware/users/rmw/rmw.h
Reed 1baa99c647
[Keymap] Adding my keymaps for ergodox_ez and kyria (#9365)
* Trying to fix problems in my kyria steez

* repeating last commit.....

* repeating last commit on EDIT layer but swapping direction

exit

* moving the reversed desktop moves to the symbol layers on the same hand, for easier activation

* adding mac desktop movement keys to Kyria layout

* Adding readmes to my keymaps

* Removing a png...

* Update keyboards/ergodox_ez/keymaps/rmw/keymap-mac.c removing EPRM case

* Apply suggestions from code review

Great updates to various old-school or outdated ways I was doing things, removing some commented out code, etc.

* Apply suggestions from code review

Additional improvements

* Moving tapdances.cpp to userspace as tapdances.c

* reindenting the Kyria keymap to follow four-spaces convention, turning off oled on my kyria, improving the led handling on the Ergodox.

* updating led stuff on the other two versions of the keymap, removing EPRM key from main keymap

* Apply suggestions from code review

I'm adding these various removals to the config file because it seems that at this time those settings are in harmony with the ergodox_ez defaults.

* Moving encoder functions into their own userspace file

* Apply suggestions from code review

Removing settings that are now defaults, clearing out placeholder custom keycodes (smh)

* updating encoder functions.

* Moving to LAYOUT_stack for all layers, adding end of file newlines, switching to some shorter keycode aliases

* Okay, refactor is well underway.

* refactored! Also improved led handling for ergodox and rgb handling for kyria

* removing mac/windows swappable version because I don't feel like dealing with it when reflashing is so easy.

* moving LAYOUT_stack into kyria.h

* moving the alternate default layer down next to QWERTY
2020-06-29 10:23:13 -07:00

88 lines
1.8 KiB
C

#pragma once
#include QMK_KEYBOARD_H
#include "quantum.h"
#include "action.h"
#include "version.h"
#ifdef TAP_DANCE_ENABLE
#include "tapdances.h"
#endif
#ifdef ENCODER_ENABLE
#include "encoder_functions.h"
#endif
enum user_layers {
QWERTY = 0
,MINIMAK4
,NUMPAD
,EDIT
,FSYM
,JSYM
,MEDIA
,ADJUST
};
// Custom keycodes
#define SFTENT SFT_T(KC_ENT)
enum user_custom_keycodes_universal {
VRSN = SAFE_RANGE
,OS_CSFT = OSM(MOD_LSFT | MOD_LCTL)
,OS_GSFT = OSM(MOD_LSFT | MOD_LGUI)
,OS_CALT = OSM(MOD_LCTL | MOD_LALT)
,OS_ALT = OSM(MOD_LALT)
,OS_CTL = OSM(MOD_LCTL)
,NEW_SAFE_RANGE
};
#ifdef MACOSX
enum user_custom_keycodes {
FORM_GET = NEW_SAFE_RANGE
,FORM_PUT
,OS_CMD = OSM(MOD_LGUI)
,R_UNDO = LGUI(KC_Z)
,R_REDO = LGUI(KC_Y)
,R_CUT = LGUI(KC_X)
,R_COPY = LGUI(KC_C)
,R_PASTE = LGUI(KC_V)
,DEL_WRD = LALT(KC_BSPACE)
,MVW_LEFT = LALT(KC_LEFT)
,MVW_RIGHT = LALT(KC_RIGHT)
,SELW_LEFT = LALT(S(KC_LEFT))
,SELW_RIGHT = LALT(S(KC_RIGHT))
,NEW_TAB = LGUI(KC_T)
,TASK_MAN = LGUI(LALT(KC_ESCAPE))
,SEL_HOME = S(LGUI(KC_LEFT))
,SEL_END = S(LGUI(KC_RIGHT))
,R_HOME = LGUI(KC_LEFT)
,R_END = LGUI(KC_RIGHT)
};
#endif
#ifdef WINDOWS
enum user_custom_keycodes {
FORM_GET = NEW_SAFE_RANGE
,FORM_PUT
,OS_WIN = OSM(MOD_LGUI)
,R_UNDO = LCTL(KC_Z)
,R_REDO = LCTL(KC_Y)
,R_CUT = LCTL(KC_X)
,R_COPY = LCTL(KC_C)
,R_PASTE = LCTL(KC_V)
,DEL_WRD = LALT(KC_BSPACE)
,MVW_LEFT = LCTL(KC_LEFT)
,MVW_RIGHT = LCTL(KC_RIGHT)
,SELW_LEFT = LCTL(S(KC_LEFT))
,SELW_RIGHT = LCTL(S(KC_RIGHT))
,NEW_TAB = LCTL(KC_T)
,TASK_MAN = LCTL(LALT(KC_ESCAPE))
,SEL_HOME = S(KC_HOME)
,SEL_END = S(KC_END)
,R_HOME = KC_HOME
,R_END = KC_END
};
#endif