Requires mpris-ctl
or playerctl
and rofi
to work.
$ git clone https://github.com/Meisteri-4/rofi-mpris.git && cd rofi-mpris
$ chmod +x ./rofi-mpris
$ ./rofi-mpris --help
Usage: rofi-mpris [options] - Control MPRIS applications with rofi
options:
-m, --mpris-ctl Use mpris-ctl as MPRIS controller (DEFAULT)
-p, --playerctl Use playerctl as MPRIS controller
-f, --first-theme /path/to/theme.rasi Set rofi theme for the first level menu
Defaults to $HOME/.config/rofi/config.rasi
-s, --second-theme /path/to/theme.rasi Set rofi theme for the second level menu
Defaults to the first theme
-h, --help Show this text
If neither MPRIS controller is given as input, the script will use whichever controller is available with mpris-ctl
having priority.
Most things you may want to customize can be found inside the function get_custom_opts()
defined right at the top of the script.