Set default values for config_params #309
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Sometimes you want to set the default value of config_params for each plugin.
This is because you want to set the configuration values of other plugins from different plugins.
For example, the configuration values in my LibinputCommandInput are as follows,
but I believe the following options should be set automatically without setting anything by user.
fusuma-plugin-keypress and fusuma-plugin-thumbsense require these options.
Solution
These should be set automatically by plugins, and should only be written if the user wants to change them.
Make it possible to include yml files for each plugin.
This PR includes a yml file for libinput_command_input.
Also, add the --show-config option to dump and check the config values.
example: fusuma --show-config