skraus-dev / cherryrgb-rs

Cherry RGB Keyboard - Multi platform tool to set RGB LEDs for Cherry keyboards
MIT License
41 stars 3 forks source link

Implement keep-existing feature #59

Closed felfert closed 1 year ago

felfert commented 1 year ago

This PR implements the --keep-existing feature, mentioned in #14 . As I stated there, this is implemented by maintaining the current state in a file named cherryrgb_state.json in the directory, determined by dirs::cache_dir(). To showcase the functionality, several example profiles have been added as well. While working on the new examples, I also felt the desire to have comments in the profile. Therefore, the following was implemented:

Fixes #14

Type of change

Please delete options that are not relevant.

Code Checklist