openstream (489B)
1 #!/bin/sh 2 3 [ -f "$HOME_BIN/openstream.d/streamers" ] && channel=$(cat "$HOME_BIN/openstream.d/streamers" | rofi -theme sidebar -dmenu -p "Åpne strøm:") 4 [ "$channel" = "" ] && exit 5 echo "$channel" | sed 's/.*/https:\/\/www.twitch.tv\/\0/' | youtube-dl -a - -o - | mpv - 6 [ "$?" != 0 ] && notify-send "openstream" "Kunne ikke åpne direktestrømmen til $channel." && exit 7 8 #ii -s irc.twitch.tv -n potatoandtaco -k TW_PASS & 9 #echo "/j #$channel" > "$HOME/irc/irc.twitch.tv/in" 10 #$TERMINAL -e