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 :-)
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