2019-12-30 14:15:05 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
streamer="$(rofi -dmenu)"
|
|
|
|
|
|
|
|
if [ -n "$streamer" ]; then
|
|
|
|
if [ "$(youtube-dl -e "https://www.twitch.tv/$streamer" 2>/dev/null)" ]; then
|
|
|
|
notify-send "$streamer found"
|
2020-03-08 13:32:21 +01:00
|
|
|
$VIDEOPLAYER "https://www.twitch.tv/$streamer"
|
2019-12-30 14:15:05 +01:00
|
|
|
else
|
|
|
|
notify-send "$streamer NOT FOUND or NOT STREAMING"
|
|
|
|
fi
|
|
|
|
fi
|