summaryrefslogtreecommitdiff
path: root/plugins/osx
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-07-15 07:39:10 -0700
committerRobby Russell <robby@planetargon.com>2014-07-15 07:39:10 -0700
commit14439e057120a92c88f636e928d0fe21e7e40e68 (patch)
tree4e132141c3ea0d695951d16824bd0d910b465728 /plugins/osx
parent01da53e10f38db616d9c841de8c8a8a31bf60d1c (diff)
parentb7f51bbbdd9f0d9ff9ef59b559e91b916d53cdf1 (diff)
downloadzsh-14439e057120a92c88f636e928d0fe21e7e40e68.tar.gz
zsh-14439e057120a92c88f636e928d0fe21e7e40e68.tar.bz2
zsh-14439e057120a92c88f636e928d0fe21e7e40e68.zip
Merge pull request #2834 from jbdatko/master
Adds itunes vol command.
Diffstat (limited to 'plugins/osx')
-rw-r--r--plugins/osx/osx.plugin.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index 63760b5ff..a63f0ee05 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -174,12 +174,16 @@ function itunes() {
next|previous)
opt="$opt track"
;;
+ vol)
+ opt="set sound volume to $1" #$1 Due to the shift
+ ;;
""|-h|--help)
echo "Usage: itunes <option>"
echo "option:"
echo "\tlaunch|play|pause|stop|rewind|resume|quit"
echo "\tmute|unmute\tcontrol volume set"
echo "\tnext|previous\tplay next or previous track"
+ echo "\tvol\tSet the volume, takes an argument from 0 to 100"
echo "\thelp\tshow this message and exit"
return 0
;;
@@ -190,4 +194,3 @@ function itunes() {
esac
osascript -e "tell application \"iTunes\" to $opt"
}
-