Your company here — click to reach over 10,000 unique daily visitors

sfwbar-mpd - Man Page


sfwbar-mpd — Sfwbar Music Player Daemon module

Filename: mpd.so

Requires: libmpdclient


The Music Player Daemon module provides an interface to control an MPD server.

Expression Functions


Function Mpd queries the state of the MPD server. The function returns a string. the following queries are supported:


The title of current song.


Track number of the current song.


Artist of the current song.


Album of the current song.


Genre of the current song.


Current playback volume.


Repet flag of the current playlist: "1"/"0".


Random flag of the current playlist: "1"/"0".


Length of the current playlist.


Number of the current song in the playlist.


Elapsed time since the beginning of the song.


Length of the current song.


Sample rate of the current song (in kbps).


State of the player: "play","pause","stop","unknown".


MpdSetPassword “Password”

Specify a password used to connect to the MPD server.

MpdCommand “Command”

Send a command to the MPD server. The supported commands are:


Play the current song.


Pause playback.


Stop playback.


Switch to the previous song in the playlist.


Switch to the next song in the playlist.


The module defines two triggers:


Emitted whenever the state of the MPD server changes.


Emitted every second while player is in "play" state.