fabiofalci / sconsify

A spotify console application
https://fabiofalci.github.io/sconsify
Apache License 2.0
566 stars 26 forks source link

Command to pause only #101

Closed lisuml closed 6 years ago

lisuml commented 6 years ago

Something like:

sconsify -command pause

There are situations when you only want to pause (e.g. locking screen). When using play_pause command when the current song is paused, when locking it will cause song to play again.

fabiofalci commented 6 years ago

ops, there is pause command.

https://github.com/fabiofalci/sconsify/blob/master/rpc/server.go#L39

I've been using when locking :)

Will add to the documentation, thanks.

fabiofalci commented 6 years ago

I've added to readme how I i3lock to pause.

https://github.com/fabiofalci/sconsify#interprocess-commands

lisuml commented 6 years ago

Perfect! Thanks a lot. Would also be nice to have it help message. Currently it only shows:

-command string
        Execute a command in the server: replay, play_pause, next
fabiofalci commented 6 years ago

No problem.

Yep, just fixed for next release: https://github.com/fabiofalci/sconsify/blob/master/sconsify.go#L54

:+1: