This page is for the development version of rmpc. Make sure your version matches the selected documentation.
Properties
You can use the so-called properties in various places in rmpc. These allow you to customize what information is shown
and how the program looks as a whole. These properties are usable in the layout, tabs, browser_song_format, song_table_format, and components.
Every definition is a struct which contains kind, style, and default. The default is simply
another property which is used as a fallback value if the first property could not be resolved.
Style is a struct with three properties: fg, bg, and modifiers, and is described in more detail here.
The kind one of the available kinds. The Property kind can then be either Song, Status, or Widget. Or, in the case of song_table_format
or browser_song_format, just the Song type is available.
There are some variations in the kind definition. For example, the Property panes allow you to
use all property kinds, ie. Property(Status(..)). But the song_table_format and browser_song_format allow only
the Song property kind thus the Property type is omitted: ie. Property(Title) instead of Property(Song(Title)).
Applies a transformation on the properties in question, like truncating the value to a specified number of characters.
Example
Check the tables below for examples
Property
Displays song's metadata values or information about rmpc's and MPD's status. These properties are further divided into three categories: Song - Displays metadata of either the currently playing song or controls format of songs in lists and tables depending on the context. Status - Displays rmpc's or MPD's status like the playback state, volume, currently active tab, and others. Widget - More involved properties with custom display options; these are mostly obsolete nowadays and kept for backward compatibility.
Only the Song type is available in song_table_format or browser_song_format and the category name (Song) is omitted there.
Below are tables showing all available properties. The table rows are expandable and contain info
about parameters and examples. All the examples below assume that the properties are NOT used in the
song_table_format or browser_song_format.