MPRIS-CTL(1)

๐Ÿ“ฆ version 0.8.5, in opensuse-leap 16.0

๐Ÿ’– MPRIS-CTL(1) ๐Ÿ’–

okay so bestie, welcome to the mpris-ctl page from the General Commands Manual โ€” yes that's the manual name, she's official, she's got a whole section header and everything โœจ


๐ŸŒธ NAME ๐ŸŒธ

mpris-ctl โ€” a whole control utility for media players, like literally the remote control for your music but make it terminal ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

mpris-ctl [OPTIONS...] [COMMAND] [format string]

that's the whole vibe, that's the shape of it, no notes ๐Ÿซถ


โœจ DESCRIPTION โœจ

So mpris-ctl is a control utility for any media-player that conforms to the MPRIS D-Bus Interface Specification[1]. Any of them. All of them. Your player just has to speak MPRIS and she's in ๐Ÿ‘‘


๐ŸŽ€ OPTIONS ๐ŸŽ€

  • --player active | inactive | <name,...> โ€” tells the command which players it should be addressed to, like picking who's in the group chat. The valid values are:
    • active โ€” all players that are currently in Playing state. the main characters rn ๐Ÿ”ฅ
    • inactive โ€” all players that are currently in Stopped or Paused state. the ones on a lil break ๐Ÿ˜ด
    • <name...> โ€” specific player names, separated by spaces. yes, spaces. not commas. spaces ๐Ÿ’€
If the option is absent we consider all the players, active and inactive. everyone's invited, no cap ๐ŸŒˆ

๐Ÿ’œ COMMANDS ๐Ÿ’œ

  • help โ€” this help message. hi, you found her ๐Ÿซถ
  • play โ€” begin playing. press play bestie โ–ถ๏ธ
  • pp โ€” toggle play or pause. the chaotic one, the indecisive icon ๐ŸŽญ
  • pause โ€” pause the player. hold that thought โœ‹
  • stop โ€” stop the player. full stop, periodt ๐Ÿ›‘
  • next โ€” change to the next track play-list. skip, skip, slay โญ๏ธ
  • prev โ€” change to the previous track in the play-list. go back, we miss her โฎ๏ธ
  • status โ€” get the playback status. equivalent to the info %play_status action, iykyk
  • list โ€” get the name of the running player(s). equivalent to the info %player_name action, literally the same thing โœจ
  • info [format string] โ€” print information about the current track. and format string can include any of the following FORMAT SPECIFIERS, which is the next section, keep scrolling babe ๐Ÿ’–

๐Ÿงš FORMAT SPECIFIERS ๐Ÿงš

  • %player_name โ€” prints the media-player's name
  • %track_name โ€” prints the track's name
  • %track_number โ€” prints the track number
  • %track_length โ€” prints the track length in seconds
  • %artist_name โ€” prints the artist's name
  • %album_name โ€” prints the album's name
  • %album_artist โ€” prints the album's artist
  • %art_url โ€” prints the URL of the cover art image
  • %play_status โ€” prints the playback status
  • %shuffle โ€” prints the shuffle mode
  • %volume โ€” prints the volume level
  • %loop_status โ€” prints the loop status
  • %position โ€” prints the track's position in seconds
  • %bitrate โ€” prints the track's bit-rate
  • %comment โ€” prints the track's comment
  • %full โ€” prints all available information. the whole lore drop, the entire iceberg ๐Ÿ‘‘

โญ EXAMPLE โญ

mpris-ctl info %full

and she gives you:

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:

not the Comment: being empty ๐Ÿ˜ญ relatable honestly


๐ŸŒธ NOTES ๐ŸŒธ

  1. MPRIS D-Bus Interface Specification https://specifications.freedesktop.org/mpris-spec/latest/

go read the spec bestie, it's giving documentation ๐Ÿ’…


aaaand that's the page ๐ŸŽ€ this cutie dropped on 2022-12-04, part of the General Commands Manual, and her name is mpris-ctl(1) โ€” go control some media, you got this ๐Ÿ’–๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from