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

Set Keys programmatically & Import layers from other keyboards (especially neo layer 5&6) #4

Closed
Phoscur opened this issue Apr 13, 2023 · 3 comments

Comments

@Phoscur
Copy link
Owner

Phoscur commented Apr 13, 2023

I want to import layers from https://github.com/JHoahg/The_NEO_has_landed

There won't be any way to bring this back nicely into Oryx, from contact@zsa.io:

• Allow import & export of layers by JSON serialization through the GraphQL API

I'm afraid we're pretty firmly against this for Oryx for a few reasons. Any form of uploading is really off the table just out of an abundance of caution. We did also consider adding a way to copy layers and keys but ultimately decided against it, as then it would be super easy to copy a bunch of things and end up with an unmanageable layout -- or even to run up against your keyboard's firmware size limit.

Or is there... I'll keep writing back and forth with them a bit more.
And we could still just set them one by one through API or Browser automation...

@Phoscur
Copy link
Owner Author

Phoscur commented Apr 23, 2023

I've made some progress with graphql-mesh for oryx this weekend: I can now create layers and set keys programmatically.
This will be quite useful to batch create all kinds of neo layers, I'll prepare preset configurations...
https://github.com/Phoscur/oryx-layer-inserter/blob/7eb9113d2b6951d7120403768edc283eef3d94cc/src/index.ts#L122

@Phoscur
Copy link
Owner Author

Phoscur commented Apr 30, 2023

Update: the new project now has a CLI to copy layers from other layouts, and it would be nice to merge the projects: Phoscur/oryx-layer-inserter#1

@Phoscur Phoscur changed the title Import layers from other keyboards (especially neo layer 5&6) Set Keys programmatically & Import layers from other keyboards (especially neo layer 5&6) Apr 30, 2023
@Phoscur
Copy link
Owner Author

Phoscur commented May 4, 2023

I've been copying JHoahg's and my own layers successfully so far :)

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

No branches or pull requests

1 participant