513
submitted 1 year ago* (last edited 1 year ago) by christos@lemmy.world to c/linux@lemmy.ml

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

read

  • fzf

fzf

  • rofi

rofi

  • dmenu

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

icy

Also options in read as Preferred selector are also case insensitive.

Any feedback is appreciated!

you are viewing a single comment's thread
view the rest of the comments
[-] christos@lemmy.world 5 points 1 year ago

This script could might as well be an one-liner. It was simple and easy.

[-] ndonkersloot@feddit.nl 4 points 1 year ago

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 :-) .

[-] christos@lemmy.world 2 points 1 year ago

I know this feeling! However this script in its essence is quite simple...

[-] rivalary@lemmy.ca 0 points 1 year ago

Maybe simple to Chris Angel and his magic.

[-] christos@lemmy.world 1 points 1 year ago

Try this, it is less pretty, but in essence, the same:

cat ~/.cache/radion/stations.txt |fzf|awk '{print $1}'|xargs mpv

[-] rivalary@lemmy.ca 2 points 1 year ago

Sorry, I was mainly trying to say, "Good job, it's impressive!" Your name is close to the name of a famous magician, so I was referring to your code as magic. Bit of a dumb joke.

[-] christos@lemmy.world 2 points 1 year ago

Hey, I am glad you like it ;)

this post was submitted on 21 Oct 2023
513 points (98.9% liked)

Linux

48334 readers
671 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS