Novocirab@feddit.org 2 weeks ago
For a simple distraction-free control via Linux’s command line, you can install mpg123 and add the following to your ~/.bashrc or ~/.zshrc:
function soma() { mpg123 -@ http://somafm.com/nossl/$@.pls; } alias somaoff="kill $(pgrep mpg123)"
Then from your console:
# Tune into station "Lush" soma lush # Turn Soma off somaoff
The specific station names to enter after soma
are the ones in the URL of each station’s webpage, e.g. “folkfwd” for Folk Forward, as its URL is somafm.com/folkfwd/.