mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #300] Extend playerctl support #159
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FromWau on GitHub (Nov 26, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/300
Is your feature request related to a problem? Please describe.
Hi, I would like to keep using playerctl for my audio setup. But some playerctl commands don't get picked up by spotify-player.
Describe the solution you'd like
I noticed the following playerctl do not take effect on spotify-player:
playerctl shufflespotify_player get key playback | jq -r ".shuffle_state")on: Enable shuffling (current way:spotify_player playback shuffle)off: Disable shuffling (current way:spotify_player playback shuffle)playerctl loop(repeat)spotify_player get key playback | jq -r ".repeat_state")none: Set loop state tonone⇾off(current way: none, we can only cycle)track: Set loop state totrack⇾track(current way: none, we can only cycle)playlist: Set loop state toplaylist⇾context(current way: none, we can only cycle)playerctl position(seek)5+): Seeks forwards 5s (current way:spotify_player playback seek 5000)5-): Seeks backwards 5s (current way:spotify_player playback seek -- -5000)playerctl volumespotify_player get key playback | jq -r ".device" | jq ".volume_percent")0.05+): Increments volume level by 5% (current way: none)0.05-): Decrements volume level by 5% (current way: none)0.75): Set volume level to 75% (current way:spotify_player playback volume 75)@aome510 commented on GitHub (Nov 29, 2023):
The ability to handle media control events depends on the support from a third-party library:
github.com/Sinono3/souvlaki@384539fe83/src/lib.rs (L31-L52)IIUC,
seekshould be supported with theSetPositionevent and is already implemented from thespotify_playerside. Other commands' support cannot be implemented unlesssouvlakisupports them. I would suggest you raise the issue to the upstream library if you want this feature implemented asspotify_playerdoesn't handle the low-level media control.spotify-player's CLI commands #647spotify-player's CLI commands #1584