diff --git a/bin/twitch.sh b/bin/twitch.sh new file mode 100755 index 0000000..e81ead7 --- /dev/null +++ b/bin/twitch.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# This script simply uses livestreamer to +# stream a twitch stream. It's only a little shortcut, so I don't have to +# type so much. +# +# Usage: ./twitch.sh USERNAME [RESOLUTION] + +if [[ -z $1 ]]; then + echo "Please enter a username!" + exit 1 +fi + +if [[ -z $2 ]]; then + resolution="source" +else + resolution="$2" +fi + +livestreamer "twitch.tv/$1" "$resolution"