Skip to content

An extendable rofi based menu for streaming audio (optionally but preferably) on linux.

License

Notifications You must be signed in to change notification settings

prbhtkumr/rofi-radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

rofi-radio 📻

An extendable rofi based menu for streaming audio (optionally but preferably) on linux 🐧.

This script is inspired by Rofi-Beats.

Dependencies

  • notify-send
  • rofi

For Debian:

$ sudo apt install rofi notify-osd mpv

For Arch Linux:

$ sudo pacman -S rofi notify-osd mpv

Clone this repository:

$ git clone https://github.com/aerosol-can/rofi-radio
$ cd rofi-radio
$ chmod +x rofi-radio

Now test out the script:

$ ./rofi-radio

Usage

The script toggles the radio on and off depending on it's current state.

The script first checks to see if an instance of the radio is already playing.

If it finds the script is already playing music it kills the music. If the radio is not already playing it will launch the list of stations you can choose from.

mpv arguments

  • You can add options in the ARGS variable in the script to specify those options for running mpv. The default of --no-video is already added.
  • You can also add accitional arguments on a per stream basis using the ADDITIONAL_ARGS variable.

Extra Tips 📝

  • I'd highly recommend linking this script to a keybinding, using a tool such as skhd or sxhkd.