DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.65k stars 178 forks source link

Please add --start-stop in the same way as --play-pause #645

Open Oleksiy-Yakovenko opened 9 years ago

Oleksiy-Yakovenko commented 9 years ago

Original issue 743 created by Alexey-Yakovenko on 2012-04-19T11:52:09.000Z:

submitted by: tskevy Date: 2011-07-29 11:04:23

I commonly listen to internet radio, and I wish there was a --start-stop shell option so that I could bind it to a key in KDE in the same way that --play-pause is bound for me now. I use --play-pause for on-disk audio files, but it is not as convenient for radio streams, because I rather want to stop a stream than to pause it. So I've written this script, that works so far:

!/bin/sh

# /usr/local/bin/deadbeefstartstop
# If deadbeef is playing, stop it. If stopped, start playing.
# Bind this script to Shift+Pause
# Bind ''deadbeef --play-pause'' to Pause

exec >/dev/null 2>&1

if ! deadbeef --nowplaying "%a" 2>&1 | grep nothing; then
        deadbeef --stop &
else
        deadbeef --play &
fi

Please implement --start-stop and I'll dump the above script :-)
Oleksiy-Yakovenko commented 9 years ago

Comment #1 originally posted by Alexey-Yakovenko on 2012-04-19T19:53:14.000Z:

<empty>