janoamaral / tokyo-night-tmux

A clean, dark Tmux theme that celebrates the lights of Downtown Tokyo at night.
https://github.com/janoamaral/tokyo-night-tmux/wiki
Other
251 stars 67 forks source link

Add playerctl commands to nowplaying-cli #99

Closed K9-guardian closed 3 days ago

K9-guardian commented 3 days ago
Currently playerctl supports the following commands. Command Description
play Command the player to play.
pause Command the player to pause
play-pause Command the player to toggle between play/pause.
stop Command the player to stop.
next Command the player to skip to the next track.
previous Command the player to skip to the previous track.
position [OFFSET][+/-] Command the player to go to the position or seek forward or backward OFFSET in seconds.
volume [LEVEL][+/-] Print or set the volume to LEVEL from 0.0 to 1.0.
status Get the play status of the player. Either "Playing", "Paused", or "Stopped".
metadata [KEY...] Print the metadata for the current track. If KEY is passed, print only those values from the metadata.
open [URI] Command for the player to open a given URI. Can be either a file path or a remote URL.
loop [STATUS] Print or set the loop status. Either "None", "Track", or "Playlist".
shuffle [STATUS] Print or set the shuffle status. Either "On", "Off".

It would be great if nowplaying-cli also supported these commands so it could be used as a drop in replacement with existing playerctl scripts.

For some of these commands it might be as simple as making an alias, for others these might not be possible within the MacOS ecosystem though.