Open noctuid opened 1 year ago
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
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)
It might be nice to have an argument to switch between the available loop settings rather than having to set a specific one.