13 lines
331 B
Bash
13 lines
331 B
Bash
#!/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"
|
|
mpv $MPV_FLAGS "https://www.twitch.tv/$streamer"
|
|
else
|
|
notify-send "$streamer NOT FOUND or NOT STREAMING"
|
|
fi
|
|
fi
|