Project

General

Profile

Feature #841

command line option to start playing if not playing

Added by K. Knut about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Minor
Assignee:
-
Category:
core
Target version:
-
Start date:
November 03, 2018
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

I want to enqueue files from the file browser and start playing if the player is currently not playing. I use the --enqueue option. Next I want to start playing if the player is not playing and keep playing if the player is already playing. Unfortunately, according to the man page, the --play option restarts the currently playing song (same for Ctrl+Enter).

In my opinion the --play option should only ensure playing. Re-playing is a misleading result, maybe a suitable option should be --replay (but then it is not clear if the song or the playlist is meant)

History

#1 Updated by Michael Schwendt about 1 month ago

You could script your desired behaviour with the separate "audtool" program.

#2 Updated by John Lindgren about 1 month ago

Yep, this is pretty simple with audtool:

if ! audtool playback-playing ; then audtool playback-play ; fi

I don't think we need a new command line option for this.

Also available in: Atom PDF