From 7ef4aba52c40e8e4638f9b948e271ec41baa321a Mon Sep 17 00:00:00 2001 From: stanrc85 <47038504+stanrc85@users.noreply.github.com> Date: Wed, 10 Feb 2021 09:21:46 -0500 Subject: Userspace updates (#11841) * enable LTO for smaller firmware size * delete since this was added to userspace rules.mk * readme updates and new images * Add -j to compile and flash commands in userpsace * Enable NKRO * Enable NKRO, VIA, LTO by default * Stanrc85-ansi readme update * Stanrc85-alice readme * quick RGB layer indicator fix in keymap --- .../boardsource/the_mark/keymaps/stanrc85/keymap.c | 3 -- .../boardsource/the_mark/keymaps/stanrc85/rules.mk | 1 - layouts/community/60_ansi/stanrc85-ansi/readme.md | 29 +++++++---- layouts/community/alice/stanrc85-alice/readme.md | 57 ++++++++++++++++++++++ users/stanrc85/config.h | 1 + users/stanrc85/readme.md | 27 +++++----- users/stanrc85/rules.mk | 10 ++-- users/stanrc85/stanrc85.c | 4 +- 8 files changed, 98 insertions(+), 34 deletions(-) delete mode 100644 keyboards/boardsource/the_mark/keymaps/stanrc85/rules.mk create mode 100644 layouts/community/alice/stanrc85-alice/readme.md diff --git a/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c b/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c index bf75a284f8..890d266b90 100644 --- a/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c +++ b/keyboards/boardsource/the_mark/keymaps/stanrc85/keymap.c @@ -53,9 +53,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { void rgb_matrix_indicators_user(void) { uint8_t layer = get_highest_layer(layer_state); switch (layer) { - case _QWERTY: - rgb_matrix_set_color(10, 0, 0, 0); - break; case _FN1_60: rgb_matrix_set_color(10, 0, 0, 255); break; diff --git a/keyboards/boardsource/the_mark/keymaps/stanrc85/rules.mk b/keyboards/boardsource/the_mark/keymaps/stanrc85/rules.mk deleted file mode 100644 index 1e5b99807c..0000000000 --- a/keyboards/boardsource/the_mark/keymaps/stanrc85/rules.mk +++ /dev/null @@ -1 +0,0 @@ -VIA_ENABLE = yes diff --git a/layouts/community/60_ansi/stanrc85-ansi/readme.md b/layouts/community/60_ansi/stanrc85-ansi/readme.md index 6b5b3ca9ff..c68211bc0b 100644 --- a/layouts/community/60_ansi/stanrc85-ansi/readme.md +++ b/layouts/community/60_ansi/stanrc85-ansi/readme.md @@ -1,4 +1,4 @@ - -# Stanrc85's Standard ANSI 60% Layout +# Stanrc85's Standard Layout + +Shared keymap between 60%, 65%, Alice layouts: +- 1upkeyboards60HSE +- Mark65 +- Sneakbox Alice ## Keymap Notes - Layer 0 is default QWERTY layout with additional custom features: - SpaceFN to function layer 2 on `Space` - `CTRL` when held and `ESC` when tapped on `CAPS LOCK` - Tap Dance on `Fn1` for `CTRL+ALT+DEL` and `WIN+L` - - Tap Dance on `ESC` for `ESC` and ` ` ` + - Tap Dance on `ESC` for `ESC` and ` ` ` -![Base QWERTY Layer](https://imgur.com/lGcyLJx.png) +![Base QWERTY Layer](https://imgur.com/gvCkVUW.png) - Layer 1 is default QWERTY with no custom features used mostly for gaming - - Enabled by `Fn2+CAPS` from base layer + - Enabled by `Fn2+RCTL` from base layer -![Default ANSI Layer](https://imgur.com/M7T9PNT.png) +![Default ANSI Layer](https://imgur.com/2SAel0K.png) - Layer 2 is Function layer: - F keys @@ -37,12 +42,16 @@ along with this program. If not, see .--> - AHK Mic is used to mute/unmute microphone - AHK Speaker switches audio output between headphones and speakers -![Function Layer](https://imgur.com/YPl0JrU.png) +![Function Layer](https://imgur.com/FUjG0pL.png) + +- Layer 3 is RGB Underglow control and RESET + - `Fn2+RCTL` used to toggle Default QWERTY layer on and off + - `qmk compile` command on `Fn2+Enter` + - `qmk flash` command on `Fn2+Shift+enter` + +![RGB and RESET Layer](https://imgur.com/UPdhR12.png) -- Layer 3 is RGB control and RESET - - `Fn2+CAPS` used to toggle Default QWERTY layer on and off -![RGB and RESET Layer](https://imgur.com/8K7gSgh.png) ### Build To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-ansi`. diff --git a/layouts/community/alice/stanrc85-alice/readme.md b/layouts/community/alice/stanrc85-alice/readme.md new file mode 100644 index 0000000000..3c4d7ffc34 --- /dev/null +++ b/layouts/community/alice/stanrc85-alice/readme.md @@ -0,0 +1,57 @@ + + +# Stanrc85's Standard Layout + +Shared keymap between 60%, 65%, Alice layouts: +- 1upkeyboards60HSE +- Mark65 +- Sneakbox Alice + +## Keymap Notes +- Layer 0 is default QWERTY layout with additional custom features: + - SpaceFN to function layer 2 on `Space` + - `CTRL` when held and `ESC` when tapped on `CAPS LOCK` + - Tap Dance on `Fn1` for `CTRL+ALT+DEL` and `WIN+L` + - Tap Dance on `ESC` for `ESC` and ` ` ` + +![Base QWERTY Layer](https://imgur.com/SrLWaoj.png) + +- Layer 1 is default QWERTY with no custom features used mostly for gaming + - Enabled by `Fn2+RCTL` from base layer + +![Default ANSI Layer](https://imgur.com/KMxFZ2v.png) + +- Layer 2 is Function layer: + - F keys + - Arrows + - Volume and Media controls + - AutoHotkey shortcuts based on [Speaker Control](https://github.com/stanrc85/Speaker-Control) script + - AHK Mic is used to mute/unmute microphone + - AHK Speaker switches audio output between headphones and speakers + +![Function Layer](https://imgur.com/Luqo4cg.png) + +- Layer 3 is RGB Underglow control and RESET + - `Fn2+RCTL` used to toggle Default QWERTY layer on and off + - `qmk compile` command on `Fn2+Enter` + - `qmk flash` command on `Fn2+Shift+enter` + +![RGB and RESET Layer](https://imgur.com/tlpoP5E.png) + + + +### Build +To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-alice`. \ No newline at end of file diff --git a/users/stanrc85/config.h b/users/stanrc85/config.h index a45f9c861d..60592c3c6b 100644 --- a/users/stanrc85/config.h +++ b/users/stanrc85/config.h @@ -2,6 +2,7 @@ #define TAPPING_TERM 250 #define RETRO_TAPPING +#define FORCE_NKRO #ifdef RGBLIGHT_ENABLE #define RGBLIGHT_LAYERS diff --git a/users/stanrc85/readme.md b/users/stanrc85/readme.md index 9009a71d5f..8dff9c8e30 100644 --- a/users/stanrc85/readme.md +++ b/users/stanrc85/readme.md @@ -1,4 +1,4 @@ - -# Stanrc85's Standard ANSI 60% Layout +# Stanrc85's Standard Layout -Shared keymap between two 60% PCB: +Shared keymap between 60%, 65%, Alice layouts: - 1upkeyboards60HSE -- DZ60 (hotswap) +- Mark65 +- Sneakbox Alice ## Keymap Notes - Layer 0 is default QWERTY layout with additional custom features: @@ -26,12 +27,12 @@ Shared keymap between two 60% PCB: - Tap Dance on `Fn1` for `CTRL+ALT+DEL` and `WIN+L` - Tap Dance on `ESC` for `ESC` and ` ` ` -![Base QWERTY Layer](https://imgur.com/lGcyLJx.png) +![Base QWERTY Layer](https://imgur.com/gvCkVUW.png) - Layer 1 is default QWERTY with no custom features used mostly for gaming - - Enabled by `Fn2+CAPS` from base layer + - Enabled by `Fn2+RCTL` from base layer -![Default ANSI Layer](https://imgur.com/M7T9PNT.png) +![Default ANSI Layer](https://imgur.com/2SAel0K.png) - Layer 2 is Function layer: - F keys @@ -41,12 +42,16 @@ Shared keymap between two 60% PCB: - AHK Mic is used to mute/unmute microphone - AHK Speaker switches audio output between headphones and speakers -![Function Layer](https://imgur.com/YPl0JrU.png) +![Function Layer](https://imgur.com/FUjG0pL.png) - Layer 3 is RGB Underglow control and RESET - - `Fn2+CAPS` used to toggle Default QWERTY layer on and off + - `Fn2+RCTL` used to toggle Default QWERTY layer on and off + - `qmk compile` command on `Fn2+Enter` + - `qmk flash` command on `Fn2+Shift+enter` + +![RGB and RESET Layer](https://imgur.com/UPdhR12.png) + -![RGB and RESET Layer](https://imgur.com/PyB8z7k.png) ### Build -To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-ansi`. +To build the firmware file associated with this keymap, simply run `make your_keyboard:stanrc85-ansi` or `make your_keyboard:stanrc85-alice`. diff --git a/users/stanrc85/rules.mk b/users/stanrc85/rules.mk index 1406c68380..e88d605f5f 100644 --- a/users/stanrc85/rules.mk +++ b/users/stanrc85/rules.mk @@ -6,7 +6,9 @@ BOOTMAGIC_ENABLE = no MOUSEKEY_ENABLE = no AUDIO_ENABLE = no CONSOLE_ENABLE = no -NKRO_ENABLE = no +NKRO_ENABLE = yes +LTO_ENABLE = yes +VIA_ENABLE = yes SRC += stanrc85.c @@ -14,8 +16,6 @@ ifeq ($(strip $(KEYBOARD)), projectkb/alice/rev2) SRC += rgblight_layers.c SRC += startup_fanfare.c OPT_DEFS += -DHAS_INDICATORS - VIA_ENABLE = yes - LTO_ENABLE = no VELOCIKEY_ENABLE=yes endif ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone) @@ -23,13 +23,9 @@ ifeq ($(strip $(KEYBOARD)), sneakbox/aliceclone) SRC += startup_fanfare.c OPT_DEFS += -DHAS_INDICATORS OPT_DEFS += -DHAS_ROTARY - VIA_ENABLE = yes - LTO_ENABLE = no endif ifeq ($(strip $(KEYBOARD)), tkc/osav2) SRC += rgblight_layers_osa.c - VIA_ENABLE = yes - LTO_ENABLE = no VELOCIKEY_ENABLE=yes endif ifeq ($(strip $(KEYBOARD)), boardsource/the_mark) diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c index 8bc52b0ffd..d5e56571d1 100644 --- a/users/stanrc85/stanrc85.c +++ b/users/stanrc85/stanrc85.c @@ -109,11 +109,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { uint8_t mods = get_mods(); clear_mods(); if (mods & MOD_MASK_SHIFT) { - send_string_with_delay_P(PSTR("qmk flash -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way + send_string_with_delay_P(PSTR("qmk flash -j 6 -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way reset_keyboard(); } else - send_string_with_delay_P(PSTR("qmk compile -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way + send_string_with_delay_P(PSTR("qmk compile -j 6 -kb " QMK_KEYBOARD " -km " QMK_KEYMAP "\n"), 10); //New way set_mods(mods); } break; -- cgit v1.2.3