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!

    • folkrav@lemmy.world
      link
      fedilink
      arrow-up
      40
      arrow-down
      4
      ·
      11 months ago

      My 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.

        • folkrav@lemmy.world
          link
          fedilink
          arrow-up
          14
          arrow-down
          1
          ·
          edit-2
          11 months ago

          Oh, for sure, but to me it’s “building a car with a screwdriver” impressive. It’s impressive that the feat is doable at all, but why one would subject themselves to this eludes me haha.

          • Maeve@kbin.social
            link
            fedilink
            arrow-up
            6
            arrow-down
            1
            ·
            11 months ago

            Some people just have a natural affinity, I guess. If it made the programmer happy and it’s not full of maliciously exploitable bugs, why not?

            • folkrav@lemmy.world
              link
              fedilink
              arrow-up
              3
              arrow-down
              1
              ·
              11 months ago

              Oh, for sure! But I’m a developer myself, so like most of us, I tend to take my technical opinions as gospel by default 😉

              Sometimes it can be fun to push your limits or see how far you can go down some personally motivated rabbit hole. Just saying, I’d never do it with bash myself. Don’t get me wrong, I write bash scripts all the damn time, but the second it gets more complicated than aligning a handful of simple commands without too much output parsing BS, requiring some obscure awk one liner nobody understands after 2 days, I bail out to something less awkward.

      • DreamButt@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        11 months ago

        Not to mention the tool isn’t meant to be anything more than glue between other programs

  • HexesofVexes@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    11 months ago

    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’) )

    • christos@lemmy.worldOP
      link
      fedilink
      arrow-up
      10
      ·
      11 months ago
      • Excellent catch! This one slipped through! I just fixed the bug, thank you very much!

      I am happy you like it!

  • Qkall@lemmy.ml
    link
    fedilink
    arrow-up
    11
    ·
    11 months ago

    This looks crazy promising for us sxmo users … I’ll def check this out.

      • Qkall@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        How can we connect… I’m having weird graphical issues… But I might be drunk and missing something. Tomorrow morning I’ll send a video

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    5
    ·
    11 months ago

    Unrelated but, in case it’s not dyslexia, it’s “customize” not “costumize”. It comes from “custom” not “costume”.

  • christos@lemmy.worldOP
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    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!

  • superguy@lemm.ee
    link
    fedilink
    arrow-up
    1
    arrow-down
    18
    ·
    11 months ago

    Maybe it’s just me, but I think we don’t need more command line functionality.

    • christos@lemmy.worldOP
      link
      fedilink
      arrow-up
      14
      arrow-down
      1
      ·
      11 months ago

      Maybe. Respectfuly, feel free to move along. I fail to see the aim of your message.

        • christos@lemmy.worldOP
          link
          fedilink
          arrow-up
          7
          arrow-down
          2
          ·
          11 months ago

          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.

          • superguy@lemm.ee
            link
            fedilink
            arrow-up
            1
            arrow-down
            15
            ·
            edit-2
            11 months ago

            Calm down. Sorry I don’t care about the thing you made, but that’s no reason to throw a tantrum.

            • christos@lemmy.worldOP
              link
              fedilink
              arrow-up
              6
              arrow-down
              2
              ·
              11 months ago

              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.

              • superguy@lemm.ee
                link
                fedilink
                arrow-up
                1
                arrow-down
                15
                ·
                edit-2
                11 months ago

                Okay. You seem like the kind of guy who would prefer to use the CLI, lol.