This is just a way to save radio channel urls as I find 'em and to be able to play them via mpv.
To get this to work:
- Clone the repo
- Use my existing
stations.txtfile or add/edit as required (stations are entered asname | url) - Install
mpv(basicallysudo apt install mpvbut check out mpv.io) - Install
tmux->sudo apt install tmux - Install
cava(for the visualizer) ->sudo apt install cava - Make the
move-fm.shscript executable withchmod +x /path/to/move-fm.sh. - Create a folder called
$HOME/.config/move-fm(call it whatever you want, but make sure to change move-fm.sh to work with the new name). Specifically you need to edit move-fm.sh and edit the CONFIG_DIR variable to point to the folder you created. - Create a symlink to the stations.txt file
ln -s "/absolute/path/to/stations.txt" ~/.config/move-fm/stations.txt-> you MUST put the full path to the actual stations.txt file here to properly create a symlink - Run
/path/to/move-fm.shand enjoy
Alternatively you could make it accessible globally:
sudo ln -s "/absolute/path/to/move-fm.sh" "/usr/local/bin/move-fm"sudo chmod +x /usr/local/bin/move-fm- run it with
move-fm(or whatever you called it)
Running the script will bring up a menu that shows you what stations are available:
When you pick a station tmux will create a new session with two panes. The top one will run mpv to play the audio and the bottom will run cava which picks up the audio output to play a visualizer. To exit out of these you don't need to do the tmux stuff, just ctrl-C twice (one for each pane) and you'll be kicked back to the move-fm menu. At this stage the tmux session will be killed automatically.