SFWBAR-MPD(1)
๐ NAME ๐
okay so bestie, welcome to sfwbar-mpd โ the Sfwbar Music Player Daemon module โจ
- Filename:
mpd.so - Requires:
libmpdclient
๐ธ SYNOPSIS ๐ธ
The Music Player Daemon module gives you a whole interface to control an MPD server. that's it. that's the vibe. ๐
๐ฆ EXPRESSION FUNCTIONS ๐ฆ
Mpd(Query)
The function Mpd queries the state of the MPD server, and it returns a string. no cap. these are the queries it supports:
"title"โ the title of the current song ๐ต"track"โ the track number of the current song"artist"โ the artist of the current song ๐"album"โ the album of the current song ๐ฟ"genre"โ the genre of the current song"volume"โ the current playback volume ๐"repeat"โ the repeat flag of the current playlist:"1"/"0""random"โ the random flag of the current playlist:"1"/"0"๐"queue_len"โ the length of the current playlist"queue_pos"โ the number of the current song in the playlist"elapsed"โ elapsed time since the beginning of the song โณ"length"โ the length of the current song"rate"โ sample rate of the current song (in kbps)"state"โ the state of the player:"play","pause","stop","unknown"
๐ ACTIONS ๐
MpdSetPassword "Password"
Specify a password used to connect to the MPD server. ๐ (yes, <pink>*Password*</pink> is literally the placeholder, keep it in quotes, iykyk)
MpdCommand "Command"
Send a command to the MPD server. these are the supported commands, bestie:
"play"โ play the current song โถ๏ธ"pause"โ pause playback โธ๏ธ"stop"โ stop playback โน๏ธ"prev"โ switch to the previous song in the playlist โฎ๏ธ"next"โ switch to the next song in the playlist โญ๏ธ
โจ TRIGGERS โจ
The module defines two triggers, and honestly? iconic.
"mpd"โ emitted whenever the state of the MPD server changes ๐ฅ"mpd-progress"โ emitted every second while the player is in"play"state ๐
๐ซถ COPYRIGHT ๐ซถ
GPLv3+
and that's the whole thing, fr fr โ this was the SFWBAR-MPD(1) page from the General Commands Manual, and yeah, the footer is just that same SFWBAR-MPD(1) title again saying goodbye. slay. periodt. ๐โจ๐
๐ฆ where this page comes from
- fedora 43: sfwbar 1.0~beta16.1-2.fc43 ยท GPL-3.0-only AND MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms