vincelwt / harmony

:musical_note: Sleek music player for Spotify, SoundCloud, Google Play Music and your local files
http://getharmony.xyz
859 stars 62 forks source link

Expose features on commandline interface #80

Open w0xel opened 7 years ago

w0xel commented 7 years ago

It would be nice to be able to fav a song using a global shortcut by assigning for example "harmony --like-current" to some shortcut in the shortcut manager of my system.

Other use cases could be starting a Radio for the current song in GooglePlay (This would mean exposing these features on a plugin base, i don't know if thats easily possible), toggling shuffle mode, starting the standard discover mode of a specific plugin ('--discover spotify' would start data.spotify.discover[0]) or launching a playlist by name ('--playlist MyPlaylist')

If you plan on implementing a 'hide to tray' feature these shortcuts could be used to launch harmony hidden, automatically playing a playlist or discover using only one shortcut...

w0xel commented 7 years ago

shortcuts for plugins would probably not be so hard: something like "--service googlepm-radio" could simply try to start the function 'ctl("radio")' of the googlepm plugin, and do nothing if it doesn't exist.

ghost commented 7 years ago

Keyboard shortcut registering is ezpz in electron, maybe we should open this app up to be driven by keyboard if the user wants?