-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slim down default RGB_ANIMATIONS #7680
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I'm not a fan of changing all of the keyboards, like this. Especially as the test animations aren't needed by most of these keyboards.
What may be better is just leaving the define as is.
Though .... we should ABSOLUTELY enable the christmas light one for this: https://github.com/qmk/qmk_firmware/tree/master/keyboards/christmas_tree
@drashna wouldn't implicitly removing these effects from the keyboards/keymaps break the build? If not, I can of course revert the changes, if that's preferred. |
Ah, yeah, you're right. |
@drashna just remembered this PR and applied your suggestions. Think it can be reviewed (and then merged) now. |
930d83c
to
cd8e319
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the PR touches user keymaps, which we either need sign off from the affected users, or it needs to run through https://docs.qmk.fm/#/breaking_changes?id=breaking-changes.
However outside those keymaps, it also silently breaks the behaviour of users who do something similar to:
keyboards/lets_split/keymaps/pitty/keymap.c: rgblight_mode(29);
Its in no way ideal that those keymaps use raw indexes, however I think that is also another case for this requiring breaking changes.
Oh my, that's of course a valid concern. Are these modes only used inside I agree that we should first get confirmation from the affected keyboard and keymap owners, but I think that'd get a bit complicated. Using the standard breaking-changes process is probably the better idea. |
Unfortunately, the issue with the hard coded numbers is that at one point we didn't have the granular selection, and that stuff wasn't changed at that time. For the keyboards, I don't think that we need the sign off on those. But for the user keymaps, we definitely want their signoff or to go via the breaking changes process |
I see, then it makes sense to wait until next breaking changes. |
You can tag the contributors in question, and if they all consent, then don't need to wait for breaking changes. |
cd8e319
to
9a98326
Compare
Ok, thank you. Paging @issmirnov, @khord, @coryshaw1, @finex, and @AnthonyWharton then. Please let me know if you're fine with the changes in this PR, and maybe even check out the branch and give it a test, if everything still works. Also, I rebased my changes onto the latest master, and also re-ran the script another time. |
I’m not in a position to test on my build, but it looks fine to me, thanks 👍 |
Thanks for the ping. I checked my keymap it works fine. TBH I should remove the unused test animations entirely, but I can handle that myself. Thanks for the reminder though! Posting steps for other authors:
|
LGTM |
@Wilba6582 thanks for the heads-up, how would you suggest to fix that problem? Does this have to happen inside the VIA source code? Or would the change be for all keyboards in the repo here, that are compatible with VIA? |
@Maxr1998 If a keyboard currently in QMK has RGBLIGHT enabled and has a |
@Wilba6582 Done. I also updated my helper script in the OP. Let me know if you spot any issues. |
So, any update on this? We'd still need feedback from @coryshaw1 and @finex, should we instead pull this one into the breaking changes process? |
Ok for me. |
@coryshaw1 any issues with the change to your code? |
Sorry for the late reply. I just built everything fine for my keymaps that use RGB. No issues here 👍 |
Thanks, and no worries. That should be everyone then! @drashna: so, final review I'd say? |
Personally i think this still needs breaking changes with what i mention in #7680 (review) |
Whether we go through |
@noroadsleft thanks for the heads up, I'll rebase this once I find the time. |
Well, that didn't really work out. |
I think this is still useful, to be honest. Having the option to have fewer animations by default is a good idea, IMO. |
No longer required. |
Description
As it was already discussed in #7669, this PR moves some of the more specific animations into an extra define block, and slims down the default animations. To not break compatibility, I used the following simple script to find keymaps using those animations, and updated their defines to use the extended "import" where necessary. This is however in no way complete yet, and still needs some more testing on my end to verify it's complete, that's why I only marked it as draft for now.
find . -type d -wholename "./keyboards/*/keymaps/*" -exec ./rgblight_fix_script.sh {} \;
Types of Changes
Issues Fixed or Closed by This PR
Checklist