Radion, an internet radio CLI client, written in Bash.
Radion, an internet radio CLI client, written in Bash.
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!
50 0 ReplyMy first thought every time I see a pure bash project: "wow" followed by "but... why".
I get that we have bash on most machines, reducing dependencies, all that jazz. But it's so painful to do anything nontrivial with it. There are so many small potential papercuts and edge cases, I'd rather pull my teeth out with a pair of pliers than code more than a simple script in it.
43 4 ReplyThat’s why it’s impressive. It’s not easy.
12 0 ReplyEverything is not pure bash here, it's a radio frontend for mpv. It is also using sed, awk... A standard bash use case actually.
10 0 ReplyMy entire homelab env is written in "pure bash". Bare metal deployments, creation, build, deployment, update, and backup, of docker containers (which are also just convenience wrappers around other pure bash projects of mine.). Etc...
I do it because I got sick of losing data, work, workflow or convenience to black boxes I didn't create myself. Hell, even with my third party projects like Plex I have a lot of bash automation around extracting playlists from the internal sqlite db, etc. It really shifts your perspective on what's possible when you build things by hand yourself.
10 0 ReplyNot to mention the tool isn't meant to be anything more than glue between other programs
5 0 ReplyKeep in mind that what you find painful, some people find fun :)
3 0 Reply
In bash?? So the sound comes out of the PC motherboard speaker?
16 0 ReplyDon't give me new ideas...
16 1 ReplyThat silly, obviously they're using VFIO so they can use a userspace sound card driver written in bash
6 0 ReplyMmmm, so tinny
1 0 Reply
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') )
12 0 Reply- Excellent catch! This one slipped through! I just fixed the bug, thank you very much!
I am happy you like it!
10 0 Reply
This looks crazy promising for us sxmo users ... I'll def check this out.
11 0 ReplyI must admit I had to look sxmo up...
thx!
6 0 ReplyHow can we connect... I'm having weird graphical issues.... But I might be drunk and missing something. Tomorrow morning I'll send a video
1 0 Reply
Very cool. You might want to crosspost this to c/bash on lemmy.ml
9 1 ReplyUnrelated but, in case it's not dyslexia, it's "customize" not "costumize". It comes from "custom" not "costume".
5 0 ReplyYou are right, lapsus calami...
1 0 Reply
No metal, blues, or dnb option?
4 0 ReplyThrough the script you could go to https://www.radio-browser.info/search?page=1&order=clickcount&reverse=true&hidebroken=true&tagList=metal, pick the stations you fancy and headbang yourself unconscious... 🎸 🤘
7 1 ReplyDe gustibus et coloribus...
Each user can create add and enjoy any tag and station they like!
5 1 ReplyHmm soma has that
4 2 Reply
Awesome :) I think I shall set this up in Termux later for one more on the go music option.
4 0 ReplyUpdate: 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!
3 0 ReplyI love somafm. I have saved a couple pls files that I listen to all the time. There's also a simple tool very similar to this but uses Deezer's library.
1 0 ReplyJust because you can doesn't mean you should.
8 14 ReplyOf course, next time I feel like writing a script, I will make sure that I let you know first, and get your approval.
28 2 Replyrespectfully, why did you write it in bash? for the challenge?
4 0 ReplyThat's the least you can do.
1 1 Reply
Maybe it's just me, but I think we don't need more command line functionality.
1 18 ReplyMaybe. Respectfuly, feel free to move along. I fail to see the aim of your message.
14 1 ReplyThat's fine. Not everything is for you.
2 16 Reply