Skip to content
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

Multiple colors #25

Closed
ThatOneCalculator opened this issue Sep 5, 2020 · 9 comments
Closed

Multiple colors #25

ThatOneCalculator opened this issue Sep 5, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@ThatOneCalculator
Copy link

Idea: add multiple colors in the cli, and spread them across keyboard rows/columns

@LoLei
Copy link
Owner

LoLei commented Sep 5, 2020

Good idea, thanks for the input!

It depends on the device if such an effect is supported.

There's for example the starlight effect, which is similar to what you describe. But I don't know of any built-in effects that have multiple static colors. It's possible to do it with a chroma configurator (again, if the device supports it), see the attached screenshot. This seems kinda of clunky to achieve via a CLI though.

Razer Synapse:
image

I'll come back later with some more information.

@LoLei
Copy link
Owner

LoLei commented Sep 5, 2020

I tested the main Linux GUIs [1]:

  • polychromatic: A WebKit-based front-end featuring profiles
  • razergenie: A Qt-based front-end
  • razercommander: A GTK-based front-end

The latter two have such a chroma configuration feature, I couldn't find it on polychromatic.
So I advise you'd use one of those two, or if you really want it in the CLI too, you could open a PR yourself, as I won't be able to implement this in the near future. It would probably work similar to what razercommander does here, or similarly seen in the openrazer pylib directly here. Apparently set_key exists in the pylib but razercommander sets the matrix Frame directly.

razergenie:
2020-09-05_10-58

razercommander:
2020-09-05_10-59

@LoLei LoLei added enhancement New feature or request Hacktoberfest https://hacktoberfest.digitalocean.com/ help wanted Extra attention is needed labels Sep 5, 2020
@ThatOneCalculator
Copy link
Author

Good idea, thanks for the input!

It depends on the device if such an effect is supported.

There's for example the starlight effect, which is similar to what you describe. But I don't know of any built-in effects that have multiple static colors. It's possible to do it with a chroma configurator (again, if the device supports it), see the attached screenshot. This seems kinda of clunky to achieve via a CLI though.

Razer Synapse:
image

I'll come back later with some more information.

Thanks for the quick response! I was thinking via CLI you could input multiple colors, and it would evenly distribute those to keys automatically 🤔

@LoLei
Copy link
Owner

LoLei commented Sep 6, 2020

Thanks for the quick response! I was thinking via CLI you could input multiple colors, and it would evenly distribute those to keys automatically 🤔

So more simple than the custom configuration? You'd supply for example three colors, and then these three colors are distributed statically evenly or randomly across the keys? That's also an interesting concept, could almost be a new type of effect.

Maybe something like: razer-cli --effect multicolor ff0000 00ff00 0000ff.

@LoLei
Copy link
Owner

LoLei commented Sep 6, 2020

I have done a quick implementation of this effect, with just random colors for now (#26). That can be extended to have the user specify multiple colors.

It's actually quite pretty though with random colors!

razerclirandom

EDIT: Now multiple specified colors work as well. E.g. razer-cli -v -e multicolor ff0000 00ff00 0000ff:
razer-cli-1
razer-cli-2
razer-cli-3

@LoLei
Copy link
Owner

LoLei commented Sep 6, 2020

If this is what you had in mind @ThatOneCalculator, I'll merge #26 and create a new release.

@LoLei LoLei removed Hacktoberfest https://hacktoberfest.digitalocean.com/ help wanted Extra attention is needed labels Sep 6, 2020
@ThatOneCalculator
Copy link
Author

If this is what you had in mind @ThatOneCalculator, I'll merge #26 and create a new release.

Wow, this looks cool! However, I was thinking something more like this: eurkey~2.png

Where it could be evenly distributed in some sort of pattern like that.

@LoLei
Copy link
Owner

LoLei commented Sep 6, 2020

That should also be possible. I'll give it a shot tomorrow.

@LoLei
Copy link
Owner

LoLei commented Sep 7, 2020

Actually I don't know when I'll be able to do that. I'll merge the current version and any additional changes can be made at a later point. @ThatOneCalculator feel free to create a PR yourself. We'll track that in #27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants