diff options
| author | stanrc85 <47038504+stanrc85@users.noreply.github.com> | 2019-05-21 13:59:08 -0400 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-05-21 10:59:07 -0700 |
| commit | a0d5f0722f8d045903670babbdc76ad1c5842b7c (patch) | |
| tree | 38be6bcf6e835e14f00962907570ac5b779a1b90 /users/stanrc85 | |
| parent | 68501261c3a8dbf04a2f1de7ad23640e8074ab87 (diff) | |
| download | qmk_firmware-a0d5f0722f8d045903670babbdc76ad1c5842b7c.tar.gz qmk_firmware-a0d5f0722f8d045903670babbdc76ad1c5842b7c.zip | |
[Keymap] Romac added and tweaks to existing keymaps (#5941)
* Initial keymap for Romac
* Formatting changes
* keymap tweaks
* Add new cycle layer key
* add cycle layer code
* initial upload
* keymap updates
* keymap updates
* keymap updates for new layer names
* new enum layers
* case added for 4th layer
* removed extra space for formatting
Diffstat (limited to 'users/stanrc85')
| -rw-r--r-- | users/stanrc85/layer_rgb.c | 25 | ||||
| -rw-r--r-- | users/stanrc85/stanrc85.h | 19 |
2 files changed, 28 insertions, 16 deletions
diff --git a/users/stanrc85/layer_rgb.c b/users/stanrc85/layer_rgb.c index 23eeb3b08..58f17489a 100644 --- a/users/stanrc85/layer_rgb.c +++ b/users/stanrc85/layer_rgb.c | |||
| @@ -1,26 +1,29 @@ | |||
| 1 | #include "stanrc85.h" | 1 | #include "stanrc85.h" |
| 2 | 2 | ||
| 3 | void matrix_init_user(void) { | 3 | void matrix_init_user(void) { |
| 4 | rgblight_setrgb(0xFF, 0x00, 0x00); | 4 | rgblight_setrgb(0xFF, 0x00, 0x00); |
| 5 | }; | 5 | }; |
| 6 | 6 | ||
| 7 | uint32_t layer_state_set_user(uint32_t state) { | 7 | uint32_t layer_state_set_user(uint32_t state) { |
| 8 | switch (biton32(state)) { | 8 | switch (biton32(state)) { |
| 9 | case 0: | 9 | case 0: |
| 10 | rgblight_setrgb (0xFF, 0x00, 0x00); | 10 | rgblight_setrgb (0xFF, 0x00, 0x00); |
| 11 | break; | 11 | break; |
| 12 | case 1: | 12 | case 1: |
| 13 | rgblight_setrgb (0x00, 0xFF, 0x00); | 13 | rgblight_setrgb (0x00, 0xFF, 0x00); |
| 14 | break; | 14 | break; |
| 15 | case 2: | 15 | case 2: |
| 16 | rgblight_setrgb (0x00, 0x00, 0xFF); | 16 | rgblight_setrgb (0x00, 0x00, 0xFF); |
| 17 | break; | 17 | break; |
| 18 | case 3: | 18 | case 3: |
| 19 | rgblight_setrgb (0xFF, 0xFF, 0xFF); | 19 | rgblight_setrgb (0xFF, 0xFF, 0xFF); |
| 20 | break; | 20 | break; |
| 21 | case 4: | ||
| 22 | rgblight_setrgb (0xFF, 0x00, 0xFF); | ||
| 23 | break; | ||
| 21 | default: // for any other layers, or the default layer | 24 | default: // for any other layers, or the default layer |
| 22 | rgblight_setrgb (0xFF, 0x00, 0x00); | 25 | rgblight_setrgb (0xFF, 0x00, 0x00); |
| 23 | break; | 26 | break; |
| 24 | } | 27 | } |
| 25 | return state; | 28 | return state; |
| 26 | } | 29 | } |
diff --git a/users/stanrc85/stanrc85.h b/users/stanrc85/stanrc85.h index b3d413fa1..ceb7167e1 100644 --- a/users/stanrc85/stanrc85.h +++ b/users/stanrc85/stanrc85.h | |||
| @@ -3,10 +3,17 @@ | |||
| 3 | #include "quantum.h" | 3 | #include "quantum.h" |
| 4 | #include "version.h" | 4 | #include "version.h" |
| 5 | 5 | ||
| 6 | #define DEFAULT 0 //Custom ANSI | 6 | enum my_layers { |
| 7 | #define LAYER1 1 //Default ANSI (enable with Fn2+CAPS) | 7 | _NUMPAD = 0, //Macropad numpad |
| 8 | #define LAYER2 2 //Function keys, arrows, custom shortcuts, volume control | 8 | _NAVKEY, //Macropad nav keys |
| 9 | #define LAYER3 3 //RGB Underglow controls and RESET | 9 | _MEDIA, //Macropad media controls |
| 10 | _RGB, //Macropad RGB controls | ||
| 11 | _FN1PAD, //Macropad reset and make commands | ||
| 12 | _QWERTY = 0, //Qwerty with custom shortcuts and functions | ||
| 13 | _DEFAULT, //Default ANSI for gaming, enable with FN2+RCtl | ||
| 14 | _FN1_60, //Function keys, arrows, custom shortcuts, volume control | ||
| 15 | _FN2_60 //RGB Underglow controls and RESET | ||
| 16 | }; | ||
| 10 | 17 | ||
| 11 | //Aliases for longer keycodes | 18 | //Aliases for longer keycodes |
| 12 | #define KC_CAD LALT(LCTL(KC_DEL)) | 19 | #define KC_CAD LALT(LCTL(KC_DEL)) |
| @@ -14,10 +21,12 @@ | |||
| 14 | #define CA_QUOT LCA(KC_QUOT) | 21 | #define CA_QUOT LCA(KC_QUOT) |
| 15 | #define CA_SCLN LCA(KC_SCLN) | 22 | #define CA_SCLN LCA(KC_SCLN) |
| 16 | #define KC_CTLE LCTL_T(KC_ESC) | 23 | #define KC_CTLE LCTL_T(KC_ESC) |
| 17 | #define LT_SPCF LT(2, KC_SPC) | 24 | #define LT_SPCF LT(_FN1_60, KC_SPC) |
| 18 | #define TD_TESC TD(TD_ESC) | 25 | #define TD_TESC TD(TD_ESC) |
| 19 | #define TD_TWIN TD(TD_WIN) | 26 | #define TD_TWIN TD(TD_WIN) |
| 20 | #define TD_TCTL TD(TD_RCTL) | 27 | #define TD_TCTL TD(TD_RCTL) |
| 28 | #define CA_COPY LCTL(KC_C) | ||
| 29 | #define CA_PSTE LCTL(KC_V) | ||
| 21 | 30 | ||
| 22 | enum cust_keys { | 31 | enum cust_keys { |
| 23 | KC_MAKE = SAFE_RANGE, | 32 | KC_MAKE = SAFE_RANGE, |
