cl-mpris

2026-11-29

A wrapper library over the MPRIS DBus inteface specification for media players.

Upstream URL

github.com/Luminous-99/cl-mpris

Author

Dun

License

MIT
README

CL-MPRIS

cl-mpris is a wrapper library over the MPRIS DBus inteface specification, allowing control over media players that support the interface.

Examples

Starts the player, skips to the next track then fast forwards by 20 seconds.

(use-package :cl-mpris)
(let ((player (player-by-name "spotify")))
	 (player-play player)
	 (player-next player)
	 (player-seek player 20))

Lists out the titles of the currently active tracks.

(flet ((title (x)
		(cadr (assoc "xesam:title" x :test #'string=))))
	 (let ((players (list-players)))
	   (mapcar #'title (mapcar #'player-track-metadata players))))

Dependencies (1)

  • dbus

Dependents (0)

    • GitHub
    • Quicklisp