Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop Toggle/Switch #306

Open
noctuid opened this issue Apr 23, 2023 · 2 comments
Open

Loop Toggle/Switch #306

noctuid opened this issue Apr 23, 2023 · 2 comments

Comments

@noctuid
Copy link

noctuid commented Apr 23, 2023

It might be nice to have an argument to switch between the available loop settings rather than having to set a specific one.

@pickpj
Copy link

pickpj commented Jul 31, 2023

Not exactly the same, but I use the following to toggle the track loop on and off.
playerctl -p spotify loop | grep Track && playerctl -p spotify loop None || playerctl -p spotify loop Track

@alexgherman
Copy link

kind of verbose, but this should go through all the available states:

playerctl -p spotify loop $(case $(playerctl -p spotify loop) in Track) echo Playlist;; Playlist) echo None;; None) echo Track;; esac)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants