Skip to content

media

Shows the current media artwork and track title from MPRIS. On vertical bars (left / right), only the artwork is shown. On horizontal bars, enable album_art_only for the same compact look.

Album artwork follows the resolved capsule radius, including per-widget and capsule-group settings, even when the capsule background is disabled. An automatic capsule radius keeps the artwork circular; capsule_radius = 0 gives square corners. The radius is limited to half the artwork size.

With peek = true, horizontal bars show only the artwork (or the media glyph when artwork is unavailable) until you hover the widget to reveal the track text. glyph_position places the artwork before or after the text; peek reveals toward the text’s side. Both settings are inactive and hidden in Settings when album_art_only or hide_album_art is enabled, or on vertical bars.

Left-click opens the Media tab in the control center; right-click toggles play/pause. The mouse side buttons (back / forward) skip to the previous and next track. Every action targets the active player shown on the widget.

SettingTypeDefaultDescription
album_art_onlyboolfalseShow only album artwork (horizontal bars; hidden in Settings on vertical bars)
rotate_album_artboolfalseRotate the album artwork while media is playing (hidden when hide_album_art is enabled)
hide_album_artboolfalseHide the album artwork (horizontal bars). Also hides the fallback icon
hide_artistboolfalseHide the artist and show only the track title (horizontal bars; ignored when album_art_only is enabled)
artist_firstboolfalseShow Artist - Title instead of Title - Artist (horizontal bars; ignored when hide_artist or album_art_only is enabled)
glyph_positionstring"before"Place artwork or the media glyph "before" or "after" the track text; requires artwork and text mode
peekboolfalseReveal track text on hover. Requires artwork and text mode; see Peek
peek_delay_msint100Hover time before track text reveals, from 0 to 2000 ms
min_lengthnumber80Minimum widget length in pixels (hidden when album_art_only is enabled)
max_lengthnumber220Maximum widget length in pixels (hidden when album_art_only is enabled)
art_sizenumber16Artwork size in pixels before scale
title_scrollstring"none"Media title scrolling mode: "none", "always", or "on_hover" (hidden when album_art_only is enabled)
hide_when_no_mediaboolfalseHide the widget when no MPRIS player is active
hide_when_idleboolfalseHide the widget while the active MPRIS player is paused or stopped
[widget.media]
artist_first = true
art_size = 24
hide_when_no_media = true
hide_when_idle = true