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

CLI arguments to adjust settings on the fly #62

Open
1j01 opened this issue Oct 16, 2024 · 0 comments
Open

CLI arguments to adjust settings on the fly #62

1j01 opened this issue Oct 16, 2024 · 0 comments
Labels
affects:desktop-app Affects the Electron app enhancement New feature or request

Comments

@1j01
Copy link
Owner

1j01 commented Oct 16, 2024

The CLI currently supports --start and --stop to control the running application.
I want to add arguments to adjust the settings of the running application, to allow control by external applications such as a voice command system.

Something like:

  --profile PROFILE     The settings profile to use.
  --set OPTION VALUE    Change an option to a particular value. (Also outputs
                        the new value, which may be constrained to some
                        limits.)
  --adjust OPTION DELTA
                        Adjust an option by an amount relative to its current
                        value. (Also outputs the new value, which may be
                        constrained to some limits.)
  --get OPTION          Outputs the current value of an option.

or --increment and --decrement instead of --adjust (could still support negative numbers)

Should make sure to support changing multiple options in one command. Can return multiple option values separated by newlines.

The bulk of the work to support this will be refactoring the settings system. Right now there's duplicated code for serialization, and it's not very finessed in general.

There's a question of whether these flags should cause the settings to be saved, and my gut says they should be since this is for essentially automating moving the sliders and such, using voice control software, as the main use case.

@1j01 1j01 added enhancement New feature or request affects:desktop-app Affects the Electron app labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects:desktop-app Affects the Electron app enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant