DOKK / manpages / debian 12 / audacious / audtool.1.en
AUDTOOL(1) General Commands Manual AUDTOOL(1)

audtool - a small tool to control Audacious from the command line.

audtool [instance] command [parameter ...] ...

audtool sends commands to a running instance of Audacious.

It can send many common commands, such as to skip to the next song in the playlist, and can also print status information, such as the title of the current song.

instance may be given as -1, -2, etc. (up to -9) to specify which instance of Audacious to control when multiple instances have been started.

Print the formatted title of the current song. Depending on Audacious settings, this may include information such as the artist and album name. To print only the song title, use --current-song-tuple-data title instead.
Print the file name (full path or URI) of the current song.
Print the length of the current song in M:SS format.
Print the length of the current song in seconds.
Print the length of the current song in milliseconds.
Print the playback time counter in M:SS format.
Print the playback time counter in seconds.
Print the playback time counter in milliseconds.
Print the streaming bitrate in bits per second.
Print the streaming bitrate in kilobits per second (1 kilobit = 1000 bits).
Print the sampling rate in hertz.
Print the sampling rate in kilohertz.
Print the number of audio channels.
Print the value of a named field (artist, year, genre, etc.) for the current song. If the field name is omitted, a list of allowed fields will be printed.
Print the streaming bitrate, sampling rate, and number of audio channels.

Start playback. If paused, playback will resume from the same point. If already active and not paused, it will restart from the beginning of the song.
Pause playback, or resume if already paused.
Equivalent to --playback-pause if playback is active, otherwise --playback-play.
Stop playback.
Return an exit code of 0 (true) if playback is active.
Return an exit code of 0 (true) if playback is paused.
Return an exit code of 0 (true) if playback is not active.
Print the playback status (``playing'', ``paused'', or ``stopped'').
Seek to the given time in seconds, relative to the beginning of the song.
Seek to the given time in seconds, relative to the current time counter.
Toggle recording of the output stream (using FileWriter).
Return an exit code of 0 (true) if stream recording is enabled.

Specifies that any subsequent playlist commands should apply to the playlist currently displayed by Audacious, regardless of which playlist is playing. This setting takes effect until it is overridden by --select-playing or Audacious is restarted.

The following commands are also affected:

--current-song
--current-song-filename
--current-song-length[-seconds,-frames]
--current-song-tuple-data
Specifies that when playback is active, any subsequent playlist commands should apply to the playlist currently playing. When playback is stopped, the behavior is the same as --select-displayed. This setting is the default.

Skip to the next song in the playlist.
Skip to the previous song in the playlist.
Add a song to end of the playlist. Either a URI or a local file path (absolute or relative) may be given.
Insert a song at the given position (one-based) in the playlist.
Add a song to the ``Now Playing'' playlist, creating the playlist if necessary, and begin to play the song. Depending on Audacious settings, the playlist may first be cleared.
Remove the song at the given position from the playlist.
Print the number of songs in the playlist.
Print the formatted title of a song in the playlist.
Print the file name (full path or URI) of a song in the playlist.
Print the length of a song in the playlist in M:SS format.
Print the length of a song in the playlist in seconds.
Print the length of a song in the playlist in milliseconds.
Print the value of a named field for a song in the playlist.
Print the titles of all the songs in the playlist.
Print the position of the current song in the playlist.
Skip to the song at the given position in the playlist.
Clear the playlist.
Print the status of playlist auto-advance (``on'' or ``off'').
Toggle playlist auto-advance.
Print the status of playlist repeat (``on'' or ``off'').
Toggle playlist repeat.
Print the status of playlist shuffle (``on'' or ``off'').
Toggle playlist shuffle.
Print the ``stop after current song'' option (``on'' or ``off'').
Toggle the ``stop after current song'' option.

Print the number of open playlists.
Print the number of the current playlist, where "current" is interpreted according to --select-displayed or --select-playing.
Start playback in the current playlist, resuming from the last point played if possible. When --select-displayed is in effect, this command can be used to switch playback to the displayed playlist.
Display the given playlist. When --select-playing is in effect and a different playlist is playing, this command will also switch playback to the given playlist. The --select-displayed option disables this behavior.
Print the title of the current playlist.
Set the title of the current playlist.
Insert a new playlist after the current one and switch to it as if --set-current-playlist were used.
Remove the current playlist.

Add the song at the given playlist position to the queue.
Remove the song at the given playlist position from the queue.
Return an exit code of 0 (true) if the song at the given playlist position is in the queue.
Print the queue position of the song at the given playlist position.
Print the playlist position of the song at the given queue position.
Print the number of songs in the queue.
Print the titles of all the songs in the queue.
Clear the queue.

Print the current volume level in percent.
Set the current volume level in percent.
Activate or deactivate the equalizer.
Print the equalizer settings (preamp and gain for all bands) in decibels.
Set the equalizer settings (preamp and gain for all bands) in decibels.
Print the equalizer pre-amplification in decibels.
Set the equalizer pre-amplification in decibels.
Print the gain of the given equalizer band (0-9) in decibels.
Set the gain of the given equalizer band (0-9) in decibels.

Show or hide the Audacious window.
Show or hide the Add Files window.
Show or hide the Jump to Song window.
Show or hide the Settings window.
Show or hide the About window.
Print version information.
Return an exit code of 0 (true) if the given plugin is enabled. The plugin is specified using its installed filename minus the folder path and suffix: for example, crossfade for ${prefix}/lib/x86_64-linux-gnu/audacious/Effect/crossfade.so.
Enable or disable the given plugin. Note that interface and output plugins cannot be disabled directly since one of each must always be active. Enabling an interface or output plugin will automatically disable the previous plugin.
Print the value of a configuration setting. Any use of this command is entirely unsupported. How to find the section and name of a given setting is left as an exercise for the reader.
Change the value of a configuration setting. This command is unsupported and dangerous. It might have unexpected side effects (such as crashing Audacious), or it might have no effect at all. Use it at your own risk!
Shut down Audacious.
Print a brief summary of audtool commands.

Commands may be prefixed with `--' (GNU-style long options) or not, your choice.

There are no known bugs in audtool at this time; if you find any please report them at https://redmine.audacious-media-player.org/projects/audacious.

audtool was written by George Averill <nhjm@nhjm.net> and Ariadne Conill <ariadne@dereferenced.org>.

This manual page was written by Adam Cecile <gandalf@le-vert.net> and Kiyoshi Aman <kiyoshi@atheme.org>. Some additional tweaks were done by Ariadne Conill <ariadne@dereferenced.org> and Tony Vroon <chainsaw@gentoo.org>. The manual page was updated for Audacious 3.7 and later by John Lindgren <john@jlindgren.net>.

This work is licensed under a Creative Commons Attribution 3.0 Unported License <https://creativecommons.org/licenses/by/3.0/>.

audacious(1)

https://audacious-media-player.org

September 2017 Version 4.2