cl-mpris
2026-11-29
A wrapper library over the MPRIS DBus inteface specification for media players.
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))))