Last active
March 9, 2016 11:34
-
-
Save Nihlus/b90e36cad25520a15dd9 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 | |
DEFAULTPLAYER=mpv | |
CLIPCONTENT=$(xclip -selection clipboard -o) | |
if [[ $CLIPCONTENT != http* ]]; then | |
CLIPCONTENT="" | |
fi | |
livestreamer $(zenity --entry --title="Twitch VOD" --text "Enter the URL to the VOD:" --entry-text="$CLIPCONTENT") source --player-passthrough hls --player $DEFAULTPLAYER --player-args '{filename} --title="Twitch"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool, thanks for sharing. I made a 4-up script: https://gist.github.com/dd880a1838dc1132b278
Now, I'm going to re-write it. I didn't know about
--player-passthrough hls
neither did I think about using zenity.