Music player

mpris-ctl – control music players

mpris-ctl is a minimalistic command-line tool for controlling audio players that expose an MPRIS D-Bus interface. It has a small dependency footprint and is aimed particularly at keyboard-based window managers.

Commands can be directed at named players or selected according to their playback state. Its information command can also produce customised output, making the utility useful for notifications, status bars, shell scripts, and keyboard shortcuts.

This is free and open source software.

Key Features

  • Play, pause, toggle playback, stop, and change tracks.
  • Target a specific MPRIS-compatible media player.
  • Accept multiple player names when selecting command targets.
  • Target active players whose playback status is Playing.
  • Target inactive players whose playback status is Paused or Stopped.
  • Report the current track name, artist, album, album artist, and track number.
  • Display playback status, position, track length, bitrate, and comments.
  • Report and manipulate volume, shuffle, and loop state.
  • Use configurable format specifiers with the info command.
  • Generate compact output suitable for desktop notifications and status bars.
  • Works well with keyboard shortcuts in environments such as i3 and Sway.
  • Depends only on the C D-Bus library at build and run time.

Website: github.com/mariusor/mpris-ctl
Support:
Developer: Marius Orcsik
License: MIT License

mpris-ctl options

mpris-ctl is written in C. Learn C with our recommended free books and free tutorials.


Related Software

MPRIS Tools
playerctlMPRIS media player command-line controller
mpris-ctlMinimalistic command-line interface tool for controlling audio players
mpv-mprismpv plugin to control the player using standard media keys
mpd-mprisMPRIS protocol for MPD
mprisenceBridges MPRIS-compatible media players
empressMPRIS media controls made simple
mpris-scrobblerMinimalistic user daemon
MPRIS MiniPlayerDisplays whatever media in a MPRIS compatible player is playing.
mpdris2-rsExpose MPD playback through MPRIS2

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
2 Comments
Oldest
Newest Most Voted
mmm
mmm
1 year ago

the link is wrong