radion is an internet radio CLI client, written in Bash.
https://gitlab.com/christosangel/radion
Radion can be customized as far as the station selecting program is concerned. The user can choose between:
- read
- fzf
- rofi
- dmenu
Update: Introduced new feature: customizing prompt text for fzf dmenu and rofi.
Update: MacOS support added now thanks to Andrea Schäfer
Also, I was forced by my daughter to add some anime radio stations…
Update: Recording functionality added, with the use of another (you guessed it) bash script
Also options in read
as Preferred selector are also case insensitive.
Any feedback is appreciated!
In bash? Impressive!
In bash?? So the sound comes out of the PC motherboard speaker?
Don’t give me new ideas…
That silly, obviously they’re using VFIO so they can use a userspace sound card driver written in bash
Mmmm, so tinny
Well, I know what I’ll be using to listen to my radio stations from now on. Really neat project!
Also, it doesn’t pick up user defined tags because it’s looking in the wrong place for them!
Row 114:
TAGS=( $(sed ‘s/ /\n/g’ stations.txt |grep “#”|grep -v “#Favorites”|sort|uniq|sed ‘s/#//g’) )
Should be
TAGS=( $(sed ‘s/ /\n/g’ $HOME/.cache/radion/stations.txt |grep “#”|grep -v “#Favorites”|sort|uniq|sed ‘s/#//g’) )
- Excellent catch! This one slipped through! I just fixed the bug, thank you very much!
I am happy you like it!
Very cool. You might want to crosspost this to c/bash on lemmy.ml
Unrelated but, in case it’s not dyslexia, it’s “customize” not “costumize”. It comes from “custom” not “costume”.
You are right, lapsus calami…
Awesome :) I think I shall set this up in Termux later for one more on the go music option.
Update: Recording functionality added, with the use of another (you guessed it) bash script
Also options in
read
as Preferred selector are also case insensitive.Any feedback is appreciated!
This looks crazy promising for us sxmo users … I’ll def check this out.
No metal, blues, or dnb option?
Hmm soma has that
Just because you can doesn’t mean you should.
Of course, next time I feel like writing a script, I will make sure that I let you know first, and get your approval.
respectfully, why did you write it in bash? for the challenge?
This script could might as well be an one-liner. It was simple and easy.
Yeah right, that’s what my co-worker said writing the most obscure bash scripts… *looks at code Ah, it is easy and well structured indeed. Nice :-) .
I know this feeling! However this script in its essence is quite simple…
Maybe simple to Chris Angel and his magic.
Try this, it is less pretty, but in essence, the same:
cat ~/.cache/radion/stations.txt |fzf|awk '{print $1}'|xargs mpv
That’s the least you can do.
I like how people I don’t know insist on telling me what to do. Actually, I like the part where I ignore them.
Dude, I was trying to be funny. Feel absolutely free to ignore me.
Oh, no problem 😀
Removed by mod
Maybe. Respectfuly, feel free to move along. I fail to see the aim of your message.
Removed by mod
By the way: Who’s “we”? Do you represent a group of people? Are you elected to speak for someone? Or is it the plural of some royal family? Please.
Removed by mod
I know, it so indifferent to you, that you have written so many messages on my post, just to troll me. Go on, write one more, have the last word and be done with it.
Removed by mod