gittyeric / ergodox-macro-hax

A hack to get around the 4-button max Macro limit in Oryx for Ergodox / Moonlander keyboards.
29 stars 0 forks source link

Add oryx downloader (graphql query + unzip) #3

Closed Phoscur closed 2 years ago

Phoscur commented 2 years ago

This is a first step towards #1 proposing a few new conventions concerning folder structure.

Will be followed up by adding more configurability (through env).

@gittyeric I don't think it's worth cleaning up the git history and moving my own macros out, are you okay with having my-macros.ts in there redundantly for now?

eric-fulfil commented 2 years ago

@phoscur yeah that works. The only value in the hardcoded macros is to serve as a quickstart example to people, so other than having some breadth it doesn't matter much.

Phoscur commented 2 years ago

Super slick you were able to reverse engineer their Onyx interface!

Yeah, first I wanted to use cheerio to parse the HTML, but as that is not actually delivered prerendered by ORYX, I took a look at the other requests and found an extensive GraphQL API, which is easy to use.

Phoscur commented 2 years ago

@eric-fulfil plans on merging this? the other PR (#6) includes it aswell.

gittyeric commented 2 years ago

Nope, wrong account on my part!

Phoscur commented 2 years ago

Not fixing conflicts, since these changes are included in the other PR aswell