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!

    • ndonkersloot@feddit.nl
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 months 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.worldOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 months 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
              link
              fedilink
              arrow-up
              2
              ·
              8 months 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.