mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #315] FR: playback play and playback pause #166
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#166
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 @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. Whileplay-pausemakes sense when using the TUI, when usingspotify_playerwithout starting up the TUI, it makes sense to have separate commands forplayandpause, e.g. for scripting.Describe the solution you'd like
spotify_player playback pauseandspotify_player playback play. (pausewhen spotify is already paused does nothing, andplaywhen spotify is already playing also does nothing.)Describe alternatives you've considered
Running
spotify_player get key playback, piping the result tojq, checking whether.actions.disallowcontains"resuming", followed by a conditional to playspotify_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_playertwice, as opposed to one call viaplayback pause