hnarayanan / shpotify

A command-line interface to Spotify.
https://harishnarayanan.org/projects/
2.01k stars 153 forks source link

Feature request, being able to turn off or on shuffle #150

Open eTLAsw opened 3 years ago

eTLAsw commented 3 years ago

I love this tool but I would like to be able to turn shuffle on or off and not only toggle it. I've scripted buttons on my Stream Deck to switch to dedicated playlists and I would like to at the same time make sure Spotify is in shuffle mode.

Either the ability to turn shuffle on/off or check the current status would be nice.

davidem commented 3 years ago

As far as I know the applescript method to shuffle or not is a toggle itself. It's only one command to rule both on and off.

What might be possible is to implement a check in your scripted buttons with spotify info, 2nd from the bottom shows if shufle is enabled or not. Or check with the following applescript command: osascript -e 'tell application "Spotify" to shuffling'

Cheers,

David