fix slow vol set. move user setting to cfg file. message prints optional #159
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.
Hi there,
I have added some small features and minor changes.
VOLUME_INCREMENTvariable moved into config file for user configuration.VERBOSE_MODEvariable added in config file. This bool variable adjust non informative commands to print nothing into screen. likevol upandvol downnextetc.vechofunction to take have control withVERBOSE_MODEvariable. Function variables is set as local variables.volcommands adjusted for speed. every osascript calls takes about 0.25 sec. When callingvol set,vol statusis also called which has no effect onvol set. (it just need forvol upandvol downandvol). This makesvol setcalls slow which takes 0.750 sec total.Some minnor suggestion that I thought but did not change in this commit.