1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-08-04 20:47:45 +02:00
wiki/wiki/linux/playerctl.md
2023-11-22 03:16:06 +01:00

1.0 KiB

PlayerCTL

PlayerCTL is a MPRIS (Media Player Remote Interfacing Specification) media player command-line controller for Spotify, Sonixd, MPV and many other different media clients aswell as browser.

Setup

On most linux distributions PlayerCTL can be installed with the playerctl package. Alternatively it can be installed via GitHub.

Usage

Basic Commands

For starting, stopping the music the commans are simple and very intuitive. The following commands show how to control music. The commands are quite self-explaining.

playerctl play
playerctl pause
playerctl play-pause
playerctl stop
playerctl next
playerctl previous

Using Hotkeys

Hotkeys can be more accessible than typing the commands to start or stop music in the terminal. With SXHKD commands from the CLI can be set to a hotkey.