Totem

From Remuco

Jump to: navigation, search

Introduction

Remuco has basic support for Totem. That means Totem 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 Totem it is the file ~/.config/remuco/Totem.bpp. This files describes how to interact with Totem on a command line basis, i.e. which shell commands to execute in order to control Totem or to get information about Totem's state.

Installation

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

 
[config]
 
tick = 10
 
[commands]
 
running = pidof totem
 
playpause = totem --play-pause
 
next = totem --next
prev = totem --previous
 
seek-fwd = totem --seek-fwd
seek-bwd = totem --seek-bwd
 
# The command line interface of Totem give 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/"
 
 

Usage

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

$ remuco --restart