Amarok

From Remuco

Jump to: navigation, search

Contents

Introduction

Remuco has basic support for Amarok. That means Amarok integration is realized by a basic player proxy.

Basic player proxies (BPPs) are the fast and easy way to integrate a media player into Remuco. BPPs are simple text files located in ~/.config/remuco and suffixed with .bpp. For Amarok it is the file ~/.config/remuco/Amarok.bpp. This files describes how to interact with Amarok on a command line basis, i.e. which shell commands to execute in order to control Amarok or to get information about Amarok's state.

Installation

Create the file ~/.config/remuco/Amarok.bpp and fill it with following content:

 
[config]
 
[commands]
 
running = dcop amarok
 
playpause = dcop amarok player playPause
next = dcop amarok player next
prev = dcop amarok player prev
next = dcop amarok player next
stop = dcop amarok player stop
seek-fwd = dcop amarok player seekRelative 5
seek-bwd = dcop amarok player seekRelative -5
volume-set = dcop amarok player setVolume $PARAM
jump = dcop amarok playlist playByIndex `expr $PARAM + 1`
 
playing = dcop amarok player isPlaying
volume = dcop amarok player getVolume
plob = dcop amarok player nowPlaying
playlist = cat `dcop amarok playlist saveCurrentPlaylist` | grep "<Title>" | sed -e "s,^ *<Title>\\(.*\\)</Title> *,\\1,"
 

Usage

The player proxy gets active on next server startup. You can (re)start the server with the following commands:

$ remuco --restart

Notes

Once Amarok 2 has been released, there will be full support for Amarok.