[GH-ISSUE #496] [FEATURE REQUEST] Flags for skip, pause/play #206

Closed
opened 2026-02-28 14:47:45 +03:00 by kerem · 4 comments
Owner

Originally created by @tomkdale on GitHub (Jun 11, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/496

I would love it if I could do a couple of very simple commands without opening up the full tui. Play/pause, skip, prev songs using flags. Being apply to run a spt -n to just skip a song and keep working would be great.

Originally created by @tomkdale on GitHub (Jun 11, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/496 I would love it if I could do a couple of very simple commands without opening up the full tui. Play/pause, skip, prev songs using flags. Being apply to run a `spt -n` to just skip a song and keep working would be great.
kerem closed this issue 2026-02-28 14:47:45 +03:00
Author
Owner

@Utagai commented on GitHub (Oct 10, 2020):

Look into things like playerctl if you're on Linux, which does what you want generically for various music players. The Spotify desktop client, spotifyd, etc, all listen to it.

If you're on OSX, you'll probably have to use some combination of osascript and the AppleScript dictionaries for your apps? That said, I imagine you may already have media keys to do this quicker.

Windows, no idea.

<!-- gh-comment-id:706601918 --> @Utagai commented on GitHub (Oct 10, 2020): Look into things like `playerctl` if you're on Linux, which does what you want generically for various music players. The Spotify desktop client, `spotifyd`, etc, all listen to it. If you're on OSX, you'll probably have to use some combination of `osascript` and the `AppleScript` dictionaries for your apps? That said, I imagine you may already have media keys to do this quicker. Windows, no idea.
Author
Owner

@deadlysyn commented on GitHub (Nov 11, 2020):

I've used playerctl with the electron client, but the same key binds (playerctl {next,previous,etc}) don't seem to work out of the box for me on arch, spotifyd, spotify-tui. I'm sure it's a config tweak I'm missing. Will post back if tracked down.

Edit: For some reason, manually running platerctl -p spotifyd {next,previous,etc} from CLI works fine but if it's bound to XF86AudioNext, etc. (arch, bspwm, sxhkd) it just freezes X and I have to kill it from another vty. Likely something specific to my system, but worked fine with electron.

<!-- gh-comment-id:725197748 --> @deadlysyn commented on GitHub (Nov 11, 2020): I've used playerctl with the electron client, but the same key binds (`playerctl {next,previous,etc}`) don't seem to work out of the box for me on arch, spotifyd, spotify-tui. I'm sure it's a config tweak I'm missing. Will post back if tracked down. Edit: For some reason, manually running `platerctl -p spotifyd {next,previous,etc}` from CLI works fine but if it's bound to `XF86AudioNext`, etc. (arch, bspwm, sxhkd) it just freezes X and I have to kill it from another vty. Likely something specific to my system, but worked fine with electron.
Author
Owner

@Utagai commented on GitHub (Nov 11, 2020):

I don't have experience with bspwm so I can't really help you with what your system seems to be having issues with. You're most likely correct that it's a problem with your system (I have three Linux machines that have worked fine with this, Arch + i3, Debian + i3, and Ubuntu + i3, all bound to XF86AudioNext and friends, same as you).

You may be interested in opening up a tty or whatever it is called and looking at ~/.xsession-errors for any noise when X freezes. I would imagine it may have something useful.

<!-- gh-comment-id:725210834 --> @Utagai commented on GitHub (Nov 11, 2020): I don't have experience with `bspwm` so I can't really help you with what your system seems to be having issues with. You're most likely correct that it's a problem with your system (I have three Linux machines that have worked fine with this, Arch + i3, Debian + i3, and Ubuntu + i3, all bound to `XF86AudioNext` and friends, same as you). You may be interested in opening up a tty or whatever it is called and looking at `~/.xsession-errors` for any noise when X freezes. I would imagine it may have something useful.
Author
Owner

@Rigellute commented on GitHub (Feb 4, 2021):

You can do this now using the new cli commands!

spt pb -n
<!-- gh-comment-id:773158291 --> @Rigellute commented on GitHub (Feb 4, 2021): You can do this now using the new cli commands! ``` spt pb -n ```
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-tui#206
No description provided.