dotfiles/bin/twitch.sh
Severin Kaderli f60c23feaa Multiple changes
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2018-12-09 23:35:23 +01:00

20 lines
412 B
Bash
Executable file

#!/bin/bash
#
# This script simply uses livestreamer <http://docs.livestreamer.io/> 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="best"
else
resolution="$2"
fi
streamlink -v -l debug "twitch.tv/$1" "$resolution"