Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Amarok control script in ruby. Replaced by RockerMONO/xchat-mpris and RockerMONO/xchat-mpris2
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
mpris_ctl.rb

README

This script has been superseded by RockerMONO/xchat-mpris for MPRIS1-compatible music players and RockerMONO/xchat-mpris2 for MPRIS2-compatible music players.

------------


I made this for a nowplaying script for xchat.

It works for all music players using MPRIS (Amarok2, Clementine, Banshee(?)).
I included the commands for both amarok and clementine, you can rename them or alias /npa and/or /np to the appropriate ones.

On Linux, you can use the following, and it should be fairly similar for anything else:

Settings->Advanced->User Commands

 NAME        |                                            COMMAND                                             
-------------+------------------------------------------------------------------------------------------------
 MPRISA      | EXEC -o /path/to/amarokontrol/mpris_ctl.rb %2 '\001ACTION is listening to $default\001'
 MPRIS       | EXEC -o /path/to/amarokontrol/mpris_ctl.rb %2 'Now playing: $default'
 AMAROKA     | MPRISA amarok
 AMAROK      | MPRIS amarok
 CLEMENTINEA | MPRISA clementine
 CLEMENTINE  | MPRIS clementine


Notes:

I switched from %NAME% to $NAME to keep xchat from eating %x, but now you can't use double quotes (")
for the string... Thank you, sh.
Something went wrong with that request. Please try again.