Add twitch.sh
This commit is contained in:
parent
2fd4073b03
commit
ddb5ffbd86
1 changed files with 20 additions and 0 deletions
20
bin/twitch.sh
Executable file
20
bin/twitch.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/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="source"
|
||||
else
|
||||
resolution="$2"
|
||||
fi
|
||||
|
||||
livestreamer "twitch.tv/$1" "$resolution"
|
Loading…
Add table
Add a link
Reference in a new issue