long mplayer stuff
Also, you can control mplayer with or without a terminal window if you do this:
mkdir -p $HOME/.mplayer
mkfifo $HOME/.mplayer/fifo
echo "input=file=/home/you/.mplayer/fifo" >> $HOME/.mplayer/config
Then, while mplayer's running,
Quit mplayer:
echo quit > $HOME/.mplayer/fifo
Pause/resume mplayer:
echo pause > $HOME/.mplayer/fifo
Play next file/stream:
echo pt_step 1 > $HOME/.mplayer/fifo
Play previous file/stream:
echo pt_step -1 > $HOME/.mplayer/fifo
Anyway, back to streams & pop-ups, I fleshed it out into two shellscripts & commented the heck out of them.
I listen to radio streams at work with one script, $HOME/bin/radio: https://pastebin.com/rPsrKP94
And find out what's playing with another, $HOME/bin/radio-xsonginfo: https://pastebin.com/DHx7TraQ