playerctl Media player remote
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
playerctl play-pause
playerctl nextplayerctl previous
playerctl status
playerctl metadata title
playerctl -lplayerctl -p <name> play
playerctl volume 0.1+
Concepts
- playerctl command
- MPRIS session bus
- Player Spotify, VLC...
- Audio output
Playback
playerctl playplayerctl pauseplayerctl play-pause
playerctl stopplayerctl nextplayerctl previous
playerctl position 30+
playerctl position 90
playerctl position
playerctl open <uri>
playerctl loop None|Track|Playlist
playerctl shuffle On|Off|Toggle
Volume
playerctl volume
playerctl volume 0.5
playerctl volume 0.05+
playerctl volume 0.05-
Choosing Players
playerctl -lplayerctl -p <name> <cmd>
playerctl -p vlc,spotify <cmd>
playerctl -a <cmd>
playerctl -i <name> <cmd>
playerctl -p %any,<name> <cmd>
playerctl -s <cmd>
playerctl -vplayerctld daemon
Metadata
playerctl status
playerctl metadata
playerctl metadata <key>
playerctl metadata artist
playerctl metadata mpris:artUrl
playerctl -a status
Format and Follow
playerctl metadata -f "{{artist}} -
{{title}}"
playerctl -F metadata -f "{{artist}} -
{{title}}"
{{ playerName }} {{ status }}
{{ position }} {{ volume }}
{{ duration(mpris:length) }}
{{ duration(mpris:length - position) }}
{{ uc(status) }} / {{ lc(artist) }}
{{ trunc(title, 30) }}
{{ default(artist, "unknown") }}
{{ emoji(status) }}
{{ markup_escape(title) }}
Recipes
playerctl -F metadata \ -f '{{ emoji(status) }} {{ artist }} - {{ title }}'
playerctl -a pauseplayerctl -p spotify play
bindsym XF86AudioPlay exec playerctl play-pausebindsym XF86AudioNext exec playerctl nextbindsym XF86AudioPrev exec playerctl previous
notify-send "$(playerctl metadata -f '{{artist}} - {{title}}')"



