View Code? Open in Web Editor
NEW
A simple way to listen to your favorite radio staion
dradio's Introduction
- ๐ญ Iโm currently working on Devops tool chain
- ๐ฑ Iโm currently learning kubernetes
- ๐ฌ Ask me about any think you want
- ๐ Pronouns: mamareza
- ๐ซ How to reach me: [email protected]
- ๐ฏ Iโm looking to collaborate on pure shell scripts
dradio's People
Contributors
Watchers
dradio's Issues
First off, I find your script to be excellent, as something to use, straight for terminal, no tui even. Thank you for sharing it.
In the printout for help, the option dradio ''-d' is annotated as being 'delete' but should be (of course) 'dmenu'
Cheers,
John
I like your script, but like in the title it kills every mpv instances.
So i put the changed lines here, because i don't figure it out how to do it correctly.
First change:
Functions
play(){
nohup mpv --title="dradio" $1 --stop-playback-on-init-failure --no-video 2&>/dev/null &
case $2 in
Second change:
Stop playing
"-s"|"--stop")
kill $(ps aux | grep dradio | grep -v grep | awk '{print $2}') 2&>/dev/null ;;