hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.
BSD 2-Clause "Simplified" License
4.93k stars 206 forks source link

Playing music directly from terminal command? #586

Closed ShaneWiker closed 3 years ago

ShaneWiker commented 3 years ago

I don't know if this is possible or not, but I couldn't find anything about it in the documentation. Is it possible to play a song directly from a single command with ncspot, rather than opening the program and navigating?

I'm attempting to use the "at" package as an alarm clock, and would like to play a specific song. But to do so I would either need to download the song locally and use a local music player, or if possible I would love to just specify the song and play it through ncspot. Is this doable?

Bettehem commented 3 years ago

Yeah you can control ncspot via MPRIS using something like playerctl.

ShaneWiker commented 3 years ago

Thank you so much.