[GH-ISSUE #315] FR: playback play and playback pause #166

Closed
opened 2026-03-02 23:45:09 +03:00 by kerem · 0 comments
Owner

Originally created by @chrisgrieser on GitHub (Dec 7, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/315

Is your feature request related to a problem? Please describe.
Right now, we only have spotify_player playback play-pause. While play-pause makes sense when using the TUI, when using spotify_player without starting up the TUI, it makes sense to have separate commands for play and pause, e.g. for scripting.

Describe the solution you'd like
spotify_player playback pause and spotify_player playback play. (pause when spotify is already paused does nothing, and play when spotify is already playing also does nothing.)

Describe alternatives you've considered
Running spotify_player get key playback, piping the result to jq, checking whether .actions.disallow contains "resuming", followed by a conditional to play spotify_player playback pause...
Works, but adds quite a bit of boilerplate to any script. I also suspect that this workaround is somewhat slow, since you have to call spotify_player twice, as opposed to one call via playback pause

Originally created by @chrisgrieser on GitHub (Dec 7, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/315 **Is your feature request related to a problem? Please describe.** Right now, we only have `spotify_player playback play-pause`. While `play-pause` makes sense when using the TUI, when using `spotify_player` without starting up the TUI, it makes sense to have separate commands for `play` and `pause`, e.g. for scripting. **Describe the solution you'd like** `spotify_player playback pause` and `spotify_player playback play`. (`pause` when spotify is already paused does nothing, and `play` when spotify is already playing also does nothing.) **Describe alternatives you've considered** Running `spotify_player get key playback`, piping the result to `jq`, checking whether `.actions.disallow` contains `"resuming"`, followed by a conditional to play `spotify_player playback pause`... Works, but adds quite a bit of boilerplate to any script. I also suspect that this workaround is somewhat slow, since you have to call `spotify_player` twice, as opposed to one call via `playback pause`
kerem 2026-03-02 23:45:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#166
No description provided.