knazarov.com/content/posts/somafm_internet_radio_from_terminal/note.md

24 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-08-13 20:34:47 +00:00
X-Date: 2023-08-13T21:22:00Z
X-Note-Id: f13a9fff-a1a7-4cc6-990d-048c81593d6f
Subject: Playing SomaFM internet radio from the terminal
X-Slug: somafm_internet_radio_from_terminal
I don't know why, but the ease of just calling one terminal command when I need to play some background music
is so habit-forming, that I just haven't been doing it any other way.
In particular, whenever I need electronic music for writing code, I just write:
```
somafm play cliqhop
```
This would play the [cliqhop](https://somafm.com/cliqhop/) station from SomaFM. It doesn't require any registration,
and as soon as you're done listening - you just press ^C as usual for all terminal programs.
You can get the source at [rockymadden/somafm-cli](https://github.com/rockymadden/somafm-cli). It is actually a single
shell script that doesn't even need any compilation. Of all the third-party scripts, this one is something that I use
most often.
If you like the terminal in the way I do - give it a try. Otherwise you may as well try
[Shortwave](https://apps.gnome.org/app/de.haeckerfelix.Shortwave/) (a lightweight GTK app).