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_INCREMENT
variable moved into config file for user configuration.VERBOSE_MODE
variable added in config file. This bool variable adjust non informative commands to print nothing into screen. likevol up
andvol down
next
etc.vecho
function to take have control withVERBOSE_MODE
variable. Function variables is set as local variables.vol
commands adjusted for speed. every osascript calls takes about 0.25 sec. When callingvol set
,vol status
is also called which has no effect onvol set
. (it just need forvol up
andvol down
andvol
). This makesvol set
calls slow which takes 0.750 sec total.Some minnor suggestion that I thought but did not change in this commit.