Created
July 11, 2017 17:52
-
-
Save indeedwatson/6f0ed63bc9e0b66fe593797de33bac8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shortcuts for livestreamer channels and quality | |
twitch=http://www.twitch.tv/ | |
# get channel from list of most watched channels | |
case "$1" in | |
santzo) channel=santzo84;; | |
ohn) channel=outerheaven;; | |
prec) channel=previouslyrecorded_live;; | |
tftv) channel=teamfortresstv;; | |
dist) channel=distortion2;; | |
$1) channel=$1;; | |
esac | |
# get quality, best by default | |
case "${2:-b}" in | |
b*) quality=best;; | |
l*) quality=low;; | |
m*) quality=medium;; | |
*) | |
printf '%s: unkown quality option: %s (one of [l]ow, | |
[m]edium, [b]est)'"$0" "$2" >&2 | |
exit 1 | |
;; | |
esac | |
# exec livestreamer | |
DRI_PRIME=1 VDPAU_DRIVER=radeonsi streamlink $twitch$channel $quality & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment