elif [ "$action" = next ]; then
exec deadbeef --next
elif [ "$action" = pause ]; then
- exec deadbeef --toggle-pause
+ exec deadbeef --play-pause
elif [ "$action" = stop ]; then
exec deadbeef --stop
fi
elif pgrep audacious >/dev/null; then
if [ "$action" = prev ]; then
- exec audacious --rew
+ exec audtool --playlist-reverse
elif [ "$action" = next ]; then
- exec audacious --fwd
+ exec audtool --playlist-advance
elif [ "$action" = pause ]; then
- exec audacious --play-pause
+ exec audtool --playback-playpause
elif [ "$action" = stop ]; then
- exec audacious --stop
+ exec audtool --playback-stop
+ elif [ "$action" = stop-after ]; then
+ exec audtool --playlist-stop-after-toggle
fi
else