table of contents
- Tumbleweed 1.0.0-1.2
- Leap-16.0
- Leap-15.6
| MPRIS-CTL(1) | General Commands Manual | MPRIS-CTL(1) |
NAME¶
mpris-ctl - MPRIS media-player control utility
SYNOPSIS¶
mpris-ctl [OPTIONS...] [COMMAND]
DESCRIPTION¶
mpris-ctl is a control utility for any media-player that conforms to the MPRIS D-Bus Interface Specification[1]
OPTIONS¶
--player active | inactive | <name ...>
active
To consider all players both active and inactive you must pass the the option twice, once for each state: --player active --player inactive
COMMANDS¶
play
pp
shuffle [on|off]
If both arguments are absent, the mode is toggled.
repeat [--track|--playlist][on|off]
If the both arguments are absent the mode is toggled.
The --track/--playlist flag controls if the repeat mode should be for the current track or for the whole playlist.
pause
stop
next
prev
seek [-][time][unit]
The unit can be one of: s: seconds (default), ms: milliseconds, m: minutes
A negative value seeks backwards.
The default is 5 seconds.
status
list
info [format string]
FORMAT SPECIFIERS¶
%player_name
%track_name
%track_number
%track_length
%artist_name
%album_name
%album_artist
%art_url
%play_status
%shuffle
%volume
%loop_status
%position
%bitrate
%comment
%full
EXAMPLE¶
mpris-ctl info %full
Player name: Spotify Play status: Playing Track: Song 2 Artist: Blur Album: Blur: The Best Of Album Artist: Blur Art URL: https://open.spotify.com/image/7731a6d23ed9f82ea94e89b248450eb00f044a1b Track: 2 Length: 121.88s Volume: 0.00 Loop status: None Shuffle: false Position: 0.00s Bitrate: 0 Comment:
NOTES¶
1. MPRIS D-Bus Interface Specification
| 2025-02-23 |