Banshee
From Remuco
[edit]
Introduction
Remuco has basic support for Banshee. That means Banshee 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 Banshee it is the file ~/.config/remuco/Banshee.bpp. This files describes how to interact with Banshee on a command line basis, i.e. which shell commands to execute in order to control Banshee or to get information about Banshee's state.
[edit]
Installation
Create the file ~/.config/remuco/Banshee.bpp and fill it with following content:
[config] [commands] running = pidof banshee playpause = banshee --toggle-playing next = banshee --next prev = banshee --previous playing = [ `banshee --query-status | awk '{ print $2 }'` -eq 1 ] && echo yes || echo false plob = ARTIST=`banshee --query-artist | sed -e "s/^[^ ]*: *\\(.*\\)$/\\1/"` ; TITLE=`banshee --query-title | sed -e "s/^[^ ]*: *\\(.*\\)$/\\1/"`; echo "$ARTIST - $TITLE" # The command line interface of Banshee gives no arguments to set the volume to # a certain value. A work-around for volume control is to control the master # volume. # If you use ALSA and if the tool 'amixer' is installed, you can enable remote # volume control by uncommenting the lines below. Maybe you have to tweak # them - see 'man amixer' for more information. #volume-set = amixer -c 0 set Master Playback ${PARAM}% #volume = amixer -c 0 get Master | grep -m 1 "\\[[0-9]\\+%\\]" | sed -r -e "s/^.*\\[([0-9]+)%\\].*$/\\1/"
[edit]
Usage
The player proxy gets active on next server startup. You can (re)start the server with the following commands:
$ remuco --restart
