~/swaydesk/components/media

← All components

Media

Media

Media

Cover, title, progress and the controls of whatever player is playing.

  • Works with any player that supports MPRIS, like browsers and music or video players.
  • The icon appears only while a player has media; it turns grey when paused.
  • It follows the player that’s playing, else a paused one; the tooltip shows title, artist and player.
  • Middle click plays or pauses; right click skips to the next track.
  • The popup also shows the album, and keeps wide video thumbnails in their shape.
  • Drag the progress bar to jump, when the player allows it.
  • Previous, play/pause and next buttons.
  • With more than one player, a row of buttons switches between them.

Rust + GTK 4 · source · More in the guide · turn off: [enabled.bar] media = false

Install it alone

Only this component, without the full session. First add the Swaydesk repository, as on the page Install.

Debian 13

sudo apt install swaydesk-media

Ubuntu 26.04 · Mint 27

sudo apt install swaydesk-media

Arch Linux

sudo pacman -Syu swaydesk-media playerctl

pacman doesn't install optional dependencies, so the line already has the ones apt installs by itself.

Start it on plain Sway

It starts from its Waybar module, below.

In Waybar

In ~/.config/waybar/config.jsonc, add "custom/swaydesk-media" to modules-left, modules-center or modules-right, and paste the module from this file next to your other modules:

/usr/share/swaydesk/waybar/swaydesk-media.jsonc

The file's first lines say what each click does. The icons come from the Symbols Nerd Font, which the package brings.

Shortcuts

Click the media icon (only there while something plays)

Those of the Swaydesk profile, the default. The other profiles are in Shortcuts.