MPRIS-CTL(1)
๐ 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 theinfo %play_statusaction, iykyklistโ get the name of the running player(s). equivalent to theinfo %player_nameaction, literally the same thing โจinfo [format string]โ print information about the current track. andformat stringcan 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 ๐ธ
- 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
- opensuse-leap 16.0: mpris-ctl 0.8.5-bp160.1.10 ยท MIT
- opensuse-leap 16.0: mpris-ctl 0.8.5-bp160.1.10 ยท MIT
- opensuse-leap 16.0: mpris-ctl 0.8.5-bp160.1.10 ยท MIT
- opensuse-leap 16.0: mpris-ctl 0.8.5-bp160.1.10 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms