More config cleanup

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2019-02-13 00:47:10 +01:00
parent 005c4f29b6
commit 8d3f9c8a1d
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
22 changed files with 44 additions and 27 deletions

26
system/.local/bin/twitch.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/bash
#
# SCRIPT NAME:
# twitch.sh
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# DESCRIPTION:
# This script loads a Twitch livestream in a local video player
# using streamlink.
#
# 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 "https://twitch.tv/${1}" "${resolution}"