Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr4033 :: Using playerctl to control media players

Ken maps some playerctl commands to keyboard shortcuts in lxqt

<< First, < Previous, , Latest >>

Thumbnail of Ken Fallon
Hosted by Ken Fallon on 2024-01-17 is flagged as Clean and is released under a CC-BY-SA license.
playerctl, mpris, lxqt. (Be the first).
The show is available on the Internet Archive at: https://archive.org/details/hpr4033

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:05:51

Today I Learnt.

A series where hosts speak about recent discoveries they have made which they consider might be of interest to the HPR Community.

About MPRIS

The Media Player Remote Interfacing Specification is a standard D-Bus interface which aims to provide a common programmatic API for controlling media players.

It provides a mechanism for discovery, querying and basic playback control of compliant media players, as well as a tracklist interface which is used to add context to the active media item.

man playerctl

DESCRIPTION

The playerctl utility controls MPRIS-enabled media players. In addition to offering play, pause and stop control, playerctl also offers previous and next track support, the ability to seek backwards and forwards in a track, and volume control. playerctl also supports displaying metadata (e.g., artist, title, album) for the current track, and showing the status of the player.

Players that can be controlled using playerctl include audacious(1), cmus(1), mopidy(1), mpd(1), quodlibet(1), rhythmbox(1), vlc(1) and xmms2(1). However, any player that implements the MPRIS interface specification can be controlled using playerctl including web browsers.

Command Summary

  • "playerctl status" Get the current status of the player.
  • "playerctl play" Command the player to play.
  • "playerctl pause" Command the player to pause.
  • "playerctl play-pause" Command the player to toggle between play and pause.
  • "playerctl stop" Command the player to stop.
  • "playerctl next" Command the player to skip to the next track.
  • "playerctl previous" Command the player to skip to the previous track.

Comments

Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
What is the HOST_ID for the host of this show?
What does HPR mean to you?