Skip to content

Instantly share code, notes, and snippets.

@JrGoodle
Last active August 29, 2015 14:14
Show Gist options
  • Save JrGoodle/9070f6bb474ae4058ad7 to your computer and use it in GitHub Desktop.
Save JrGoodle/9070f6bb474ae4058ad7 to your computer and use it in GitHub Desktop.
bash meow shell function
#!/bin/bash
function meow() {
local CURRENT_VOLUME=$(osascript -e 'output volume of (get volume settings)')
osascript -e "set volume output volume 50"
say -v Kathy meow
osascript -e "set volume output volume \"${CURRENT_VOLUME}\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment