Adding my DZ60, Satan, XD75 kemaps and updates to userspace#4039
Adding my DZ60, Satan, XD75 kemaps and updates to userspace#4039drashna merged 7 commits intoqmk:masterfrom
Conversation
| @@ -0,0 +1,8 @@ | |||
| #ifndef CONFIG_USER_H | |||
There was a problem hiding this comment.
If you could replace the include guard (the ifndef, define, and endif at the end) with just #pragma once?
It's simpler, and less prone to user error, so if you could make this switch?
There was a problem hiding this comment.
@drashna Actually, I think this file can be deleted.
- Line 4 isn't needed; it's included automatically by the build script.
- Line 6 isn't needed. It's default behavior.
With your changes, that leaves only #pragma once in this file.
| #ifndef CONFIG_USER_H | ||
| #define CONFIG_USER_H | ||
|
|
||
| #include "../../config.h" |
There was a problem hiding this comment.
This line is not actually needed, and should be removed.
Specifically, the build script automatically includes all of the config.h files, so this is not necessary.
|
|
||
| #include "../../config.h" | ||
|
|
||
| #define PREVENT_STUCK_MODIFIERS |
There was a problem hiding this comment.
This is actually the new default now. This isn't needed. But you may need to update your fork to get the changes.
|
|
||
| #include "config_common.h" | ||
|
|
||
| <<<<<<< HEAD |
There was a problem hiding this comment.
You have merge conflicts here, you need to fix this.
| @@ -0,0 +1,8 @@ | |||
| #ifndef CONFIG_USER_H | |||
There was a problem hiding this comment.
If you could replace the include guard (the ifndef, define, and endif at the end) with just #pragma once?
It's simpler, and less prone to user error, so if you could make this switch?
There was a problem hiding this comment.
This file I believe can be deleted as well, for the same reasons as the config.h file for the DZ60 keymap.
| #ifndef CONFIG_USER_H | ||
| #define CONFIG_USER_H | ||
|
|
||
| #include "../../config.h" |
There was a problem hiding this comment.
This line is not actually needed, and should be removed.
Specifically, the build script automatically includes all of the config.h files, so this is not necessary.
|
|
||
| #include "../../config.h" | ||
|
|
||
| #define PREVENT_STUCK_MODIFIERS |
There was a problem hiding this comment.
This line is not actually needed, and should be removed.
Specifically, the build script automatically includes all of the config.h files, so this is not necessary.
users/jarred/config.h
Outdated
| #ifndef USERSPACE_CONFIG_H | ||
| #define USERSPACE_CONFIG_H | ||
|
|
||
| #define PREVENT_STUCK_MODIFIERS |
There was a problem hiding this comment.
This line is not actually needed, and should be removed.
Specifically, the build script automatically includes all of the config.h files, so this is not necessary.
users/jarred/config.h
Outdated
| * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| #ifndef USERSPACE_CONFIG_H |
There was a problem hiding this comment.
If you could replace the include guard (the ifndef, define, and endif at the end) with just #pragma once?
It's simpler, and less prone to user error, so if you could make this switch?
| @@ -0,0 +1,3 @@ | |||
| ifndef QUANTUM_DIR | |||
There was a problem hiding this comment.
Could you remove this (ifndef/include/endif) block?
It's not needed, and is a holdover from the old build system.
There was a problem hiding this comment.
File can be deleted, nothing going on here.
| @@ -0,0 +1,24 @@ | |||
| #include QMK_KEYBOARD_H | |||
|
|
|||
| #define _______ KC_TRNS | |||
There was a problem hiding this comment.
Lines 3 and 4 can be safely deleted. QMK includes these definitions automatically with every keymap.
qmk_firmware/quantum/quantum_keycodes.h
Lines 29 to 31 in 4318797
| @@ -1,4 +1 @@ | |||
| # Build options | |||
There was a problem hiding this comment.
This file can be deleted; nothing's actually happening here.
| @@ -0,0 +1,25 @@ | |||
| #include QMK_KEYBOARD_H | |||
|
|
|||
| #define _______ KC_TRNS | |||
There was a problem hiding this comment.
Lines 3 and 4 can be safely deleted. QMK includes these definitions automatically with every keymap.
qmk_firmware/quantum/quantum_keycodes.h
Lines 29 to 31 in 4318797
| # change to "no" to disable the options, or define them in the Makefile in | ||
| # the appropriate keymap folder that will get included automatically | ||
| # | ||
| BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
There was a problem hiding this comment.
You can actually compress Lines 5-17 down to:
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
CONSOLE_ENABLE = no # Console for debug(+400)
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
The settings only need to be included here if you're changing them from what is set by the keyboard's rules.mk file (keyboards/satan/rules.mk, in this case).
| #define _NV 1 | ||
| #define _NM 2 | ||
|
|
||
| #define _______ KC_TRNS |
There was a problem hiding this comment.
Lines 7 and 8 can be safely deleted. QMK includes these definitions automatically with every keymap.
qmk_firmware/quantum/quantum_keycodes.h
Lines 29 to 31 in 4318797
| @@ -0,0 +1,8 @@ | |||
| #ifndef CONFIG_USER_H | |||
There was a problem hiding this comment.
This file I think can be deleted, as with the other keymap config.h files, for the same reasons as before.
| @@ -0,0 +1,3 @@ | |||
| ifndef QUANTUM_DIR | |||
There was a problem hiding this comment.
This file should be deleted. The code block is unnecessary as @drashna said, and there's nothing else here.
| @@ -0,0 +1,8 @@ | |||
| #ifndef CONFIG_USER_H | |||
There was a problem hiding this comment.
@noroadsleft says "Delete this file, blah blah blah, I've heard it a hundred times already."
😀
| #define _NV 2 | ||
| #define _NM 3 | ||
|
|
||
| #define _______ KC_TRNS |
There was a problem hiding this comment.
Lines 8 and 9 can be safely deleted. QMK includes these definitions automatically with every keymap.
qmk_firmware/quantum/quantum_keycodes.h
Lines 29 to 31 in 4318797
| @@ -0,0 +1,3 @@ | |||
| ifndef QUANTUM_DIR | |||
There was a problem hiding this comment.
File can be deleted, nothing going on here.
|
Wow there was alot of redundant code in these older keymaps, should be cleaned up now :) |
users/jarred/jarred.h
Outdated
| VRSN = SAFE_RANGE // Prints QMK Firmware and board info | ||
| }; | ||
|
|
||
| // Use 7 wide characters for keymaps |
There was a problem hiding this comment.
Missed this before.
Lines 26-28 shouldn't be needed.
But everything else to me looks good.
|
Travis CI error is unrelated. |
|
Thanks! |
…mk#4039) * Update userspace with common config.h * Add my dz60, satan and xd75 keyboard keymaps * Fixing executable bits changed during last upstream merge * Cleanup unnecessary files and defines * Remove unnecessary defines from userspace config
…mk#4039) * Update userspace with common config.h * Add my dz60, satan and xd75 keyboard keymaps * Fixing executable bits changed during last upstream merge * Cleanup unnecessary files and defines * Remove unnecessary defines from userspace config
…mk#4039) * Update userspace with common config.h * Add my dz60, satan and xd75 keyboard keymaps * Fixing executable bits changed during last upstream merge * Cleanup unnecessary files and defines * Remove unnecessary defines from userspace config
Adding keymaps for DZ60, Satan and XD75 (mine and a friends).
Also small update to userspace.
Cheers!