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

Add control property to address a custom control via CLI #4136

Open
waydabber opened this issue Mar 16, 2025 · 1 comment
Open

Add control property to address a custom control via CLI #4136

waydabber opened this issue Mar 16, 2025 · 1 comment
Assignees
Labels
done All tasks are completed enhancement New feature or request integration Command-line interface internal pre-release Enable internal pre-releases under Settings/Applications/Updates
Milestone

Comments

@waydabber
Copy link
Owner

This is required so one can access custom controls (DDC and CLI) created in the app.

Also works with #4135.

@waydabber waydabber added enhancement New feature or request in progress Implementing integration Command-line interface unreleased Still baking in the oven labels Mar 16, 2025
@waydabber waydabber added this to the v3.4.2 milestone Mar 16, 2025
@waydabber waydabber self-assigned this Mar 16, 2025
@waydabber waydabber added done All tasks are completed and removed in progress Implementing labels Mar 16, 2025
@waydabber
Copy link
Owner Author

Handle (custom) ranged controls. The set sets a value, get gets a value, feed overrides the control's value (for example from an external source) without invoking set as described in #4135.

betterdisplaycli get n=DISPLAYNAME -control -specifier=customRanged
betterdisplaycli set n=DISPLAYNAME -control=30% -specifier=customRanged
betterdisplaycli feed n=DISPLAYNAME -control=50% -specifier=customRanged

Handle (custom) bool controls:

betterdisplaycli get n=DISPLAYNAME -control -specifier=customToggle
betterdisplaycli toggle n=DISPLAYNAME -control -specifier=customToggle
betterdisplaycli set n=DISPLAYNAME -control=off -specifier=customToggle
betterdisplaycli set n=DISPLAYNAME -control=on -specifier=customToggle
betterdisplaycli feed n=DISPLAYNAME -control=off -specifier=customToggle
betterdisplaycli feed n=DISPLAYNAME -control=on -specifier=customToggle

Command controls (first one invokes the defined default parameter, the second one provides an explicit parameter).

betterdisplaycli perform get n=DISPLAYNAME -control -specifier=customCommand 
betterdisplaycli perform get n=DISPLAYNAME -control=4 -specifier=customCommand

@waydabber waydabber added internal pre-release Enable internal pre-releases under Settings/Applications/Updates and removed unreleased Still baking in the oven labels Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done All tasks are completed enhancement New feature or request integration Command-line interface internal pre-release Enable internal pre-releases under Settings/Applications/Updates
Projects
None yet
Development

No branches or pull requests

1 participant