AUDTOOL(1)

๐ŸŽ€ AUDTOOL(1) ๐ŸŽ€

okay so this is straight out of your General Commands Manual bestie, and it's the whole audtool(1) page, served fresh ๐Ÿ’…


โœจ NAME โœจ

audtool โ€” a small tool to control Audacious from the command line. that's it, that's the vibe. it's your lil terminal remote control for your music player ๐Ÿซถ

๐ŸŒธ SYNOPSIS ๐ŸŒธ

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

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so audtool sends commands to a running instance of Audacious. like, it's talking to the app that's already open, not opening its own lil music world ๐Ÿ’–

it can send so many common commands, like skipping to the next song in the playlist, and it can also print status info, like the title of the current song. literally your own personal status-report bestie โœจ

instance can be given as -1, -2, etc. (up to -9) to specify which instance of Audacious to control when multiple instances have been started. so if you've got like nine Audaciouses open (iconic behavior tbh ๐Ÿ‘‘), you can pick which one gets the message.


๐Ÿ’œ COMMANDS ๐Ÿ’œ

๐Ÿ“ Current song information:

  • --current-song โ€” prints the formatted title of the current song. depending on your Audacious settings, this may include stuff like the artist and album name. and if you want only the song title? use --current-song-tuple-data title instead. iykyk ๐Ÿ˜Œ
  • --current-song-filename โ€” prints the file name (full path or URI) of the current song.
  • --current-song-length โ€” prints the length of the current song in M:SS format.
  • --current-song-length-seconds โ€” prints the length of the current song in seconds.
  • --current-song-length-frames โ€” prints the length of the current song in milliseconds.
  • --current-song-output-length โ€” prints the playback time counter in M:SS format.
  • --current-song-output-length-seconds โ€” prints the playback time counter in seconds.
  • --current-song-output-length-frames โ€” prints the playback time counter in milliseconds.
  • --current-song-bitrate โ€” prints the streaming bitrate in bits per second.
  • --current-song-bitrate-kbps โ€” prints the streaming bitrate in kilobits per second (1 kilobit = 1000 bits). math bestie ๐Ÿงฎ
  • --current-song-frequency โ€” prints the sampling rate in hertz.
  • --current-song-frequency-khz โ€” prints the sampling rate in kilohertz.
  • --current-song-channels โ€” prints the number of audio channels.
  • --current-song-tuple-data field โ€” prints the value of a named field (artist, year, genre, etc.) for the current song. and if you just leave the field name off entirely? it'll print you a list of the allowed fields. thoughtful queen โœจ
  • --current-song-info โ€” prints the streaming bitrate, sampling rate, and number of audio channels. all the stats in one go, we love a bundle ๐ŸŽ€

๐Ÿ’€ Playback commands:

  • --playback-play โ€” start playback. if paused, playback will resume from the same point. if it's already active and not paused, it will restart from the beginning of the song. heads up, that second one is a real "wait noโ€”" moment ๐Ÿ˜ญ
  • --playback-pause โ€” pause playback, or resume if already paused. toggle queen ๐Ÿ’…
  • --playback-playpause โ€” equivalent to --playback-pause if playback is active, otherwise --playback-play.
  • --playback-stop โ€” stop playback.
  • --playback-playing โ€” return an exit code of 0 (true) if playback is active.
  • --playback-paused โ€” return an exit code of 0 (true) if playback is paused.
  • --playback-stopped โ€” return an exit code of 0 (true) if playback is not active.
  • --playback-status โ€” prints the playback status ('playing', 'paused', or 'stopped'). three moods, one command ๐ŸŒˆ
  • --playback-seek time โ€” seek to the given time in seconds, relative to the beginning of the song.
  • --playback-seek-relative time โ€” seek to the given time in seconds, relative to the current time counter.
  • --playback-record โ€” toggle recording of the output stream (using FileWriter).
  • --playback-recording โ€” return an exit code of 0 (true) if stream recording is enabled.

๐Ÿงš Playlist selection:

  • --select-displayed โ€” 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. so like, it sticks around ๐Ÿ‘‘

the following commands are also affected:

  • --current-song
  • --current-song-filename
  • --current-song-length[-seconds,-frames]
  • --current-song-tuple-data
  • --select-playing โ€” 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. the main character of the two, fr fr ๐Ÿ’–

๐ŸŒŸ Playlist commands:

  • --playlist-advance โ€” skip to the next song in the playlist.
  • --playlist-reverse โ€” skip to the previous song in the playlist.
  • --playlist-addurl path โ€” add a song to end of the playlist. either a URI or a local file path (absolute or relative) may be given. come one, come all ๐ŸŽถ
  • --playlist-insurl path position โ€” insert a song at the given position (one-based) in the playlist. yes bestie, one-based, count like a human ๐Ÿ’…
  • --playlist-addurl-to-new-playlist path โ€” 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. so like, don't be shocked if your old queue ghosts you ๐Ÿ™ˆ
  • --playlist-delete position โ€” remove the song at the given position from the playlist.
  • --playlist-length โ€” prints the number of songs in the playlist.
  • --playlist-song position โ€” prints the formatted title of a song in the playlist.
  • --playlist-song-filename position โ€” prints the file name (full path or URI) of a song in the playlist.
  • --playlist-song-length position โ€” prints the length of a song in the playlist in M:SS format.
  • --playlist-song-length-seconds position โ€” prints the length of a song in the playlist in seconds.
  • --playlist-song-length-frames position โ€” prints the length of a song in the playlist in milliseconds.
  • --playlist-tuple-data field position โ€” prints the value of a named field for a song in the playlist. pick your field, pick your song ๐ŸŽ€
  • --playlist-display โ€” prints the titles of all the songs in the playlist. the whole roster, exposed โœจ
  • --playlist-position โ€” prints the position of the current song in the playlist.
  • --playlist-jump position โ€” skip to the song at the given position in the playlist. teleportation but make it music ๐Ÿฆ‹
  • --playlist-clear โ€” clear the playlist. ruthless. iconic. โœจ
  • --playlist-auto-advance-status โ€” prints the status of playlist auto-advance ('on' or 'off').
  • --playlist-auto-advance-toggle โ€” toggle playlist auto-advance.
  • --playlist-repeat-status โ€” prints the status of playlist repeat ('on' or 'off').
  • --playlist-repeat-toggle โ€” toggle playlist repeat. for the girls who listen to the same song forty times ๐ŸŽง
  • --playlist-shuffle-status โ€” prints the status of playlist shuffle ('on' or 'off').
  • --playlist-shuffle-toggle โ€” toggle playlist shuffle.
  • --playlist-stop-after-status โ€” prints the 'stop after current song' option ('on' or 'off').
  • --playlist-stop-after-toggle โ€” toggle the 'stop after current song' option.
  • --playlist-save path โ€” save the playlist to the given file path. the format is determined by the file extension. so like, name your file thoughtfully bestie, that extension is doing real work ๐Ÿ’…

๐Ÿ”ฅ More playlist commands:

  • --number-of-playlists โ€” prints the number of open playlists.
  • --current-playlist โ€” prints the number of the current playlist, where "current" is interpreted according to --select-displayed or --select-playing. it's giving context-dependent ๐Ÿ’€
  • --play-current-playlist โ€” 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. cute little switcheroo ๐Ÿซถ
  • --set-current-playlist 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. so heads up, the two flags interact ๐Ÿ‘€
  • --current-playlist-name โ€” prints the title of the current playlist.
  • --set-current-playlist-name title โ€” set the title of the current playlist. name your playlist something unhinged, i believe in you ๐Ÿ’œ
  • --new-playlist โ€” insert a new playlist after the current one and switch to it as if --set-current-playlist were used.
  • --delete-current-playlist โ€” remove the current playlist.

๐ŸŒˆ Playlist queue commands:

  • --playqueue-add position โ€” add the song at the given playlist position to the queue.
  • --playqueue-remove position โ€” remove the song at the given playlist position from the queue.
  • --playqueue-is-queued position โ€” return an exit code of 0 (true) if the song at the given playlist position is in the queue.
  • --playqueue-get-queue-position position โ€” prints the queue position of the song at the given playlist position.
  • --playqueue-get-list-position position โ€” prints the playlist position of the song at the given queue position. yes it's the reverse of the one above, no you're not buggin ๐Ÿซ 
  • --playqueue-length โ€” prints the number of songs in the queue.
  • --playqueue-display โ€” prints the titles of all the songs in the queue.
  • --playqueue-clear โ€” clear the queue. bye bestie ๐Ÿ‘‹

๐ŸŽ€ Volume control and equalizer:

  • --get-volume โ€” prints the current volume level in percent.
  • --set-volume level โ€” set the current volume level in percent.
  • --equalizer-activate [on|off] โ€” activate or deactivate the equalizer.
  • --equalizer-get โ€” prints the equalizer settings (preamp and gain for all bands) in decibels.
  • --equalizer-set preamp band0 band1 band2 band3 band4 band5 band6 band7 band8 band9 โ€” set the equalizer settings (preamp and gain for all bands) in decibels. that's a whole lotta numbers, stay strong ๐Ÿ’ช
--equalizer-set preamp band0 band1 band2 band3 band4 band5 band6 band7
band8 band9
  • --equalizer-get-preamp โ€” prints the equalizer pre-amplification in decibels.
  • --equalizer-set-preamp preamp โ€” set the equalizer pre-amplification in decibels.
  • --equalizer-get-band band โ€” prints the gain of the given equalizer band (0-9) in decibels.
  • --equalizer-set-band band gain โ€” set the gain of the given equalizer band (0-9) in decibels.

โญ Miscellaneous:

  • --mainwin-show [on|off] โ€” show or hide the Audacious window.
  • --filebrowser-show [on|off] โ€” show or hide the Add Files window.
  • --jumptofile-show [on|off] โ€” show or hide the Jump to Song window.
  • --preferences-show [on|off] โ€” show or hide the Settings window.
  • --about-show [on|off] โ€” show or hide the About window.
  • --version โ€” print version information. gotta know what you're working with โœจ
  • --plugin-is-enabled plugin โ€” 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 lib/audacious/Effect/crossfade.so. so like, strip the path and the .so and you're golden ๐Ÿงš

okay so the command list keeps going, bestie โ€” these last ones are the handle-with-care / housekeeping girlies, and theyโ€™re lowkey important. ๐Ÿ’…

  • --plugin-enable plugin [on|off] โ€” turns the given plugin on or off. Heads up: interface and output plugins cannot be disabled directly, because one of each must always be active. Enabling an interface or output plugin will automatically disable the previous plugin. Slay, but respect the rules. ๐Ÿ’–
  • --config-get [section:]name โ€” prints the value of a configuration setting. Warning bestie: 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. ๐Ÿ˜ญ good luck, iykyk.
  • --config-set [section:]name value โ€” changes 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! ๐Ÿซถ
  • --shutdown โ€” shuts down Audacious. bye-bye, main character. ๐Ÿ‘‹
  • --help โ€” prints a brief summary of audtool commands. the little cheat sheet we all need. โœจ

also, commands may be prefixed with -- (GNU-style long options) or not โ€” your choice, bestie. no cap.


๐Ÿ› BUGS ๐Ÿ›

There are no known bugs in audtool at this time; if you find any please report them at https://github.com/audacious-media-player/audacious/issues. not me being a snitch, but the maintainers wanna know fr fr ๐Ÿฆ‹

๐Ÿ’– AUTHORS ๐Ÿ’–

audtool was written by George Averill <nhjm@nhjm.net> and Ariadne Conill <ariadne@dereferenced.org>. iconic behavior. ๐Ÿ‘‘

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/. periodt. ๐ŸŽ€

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

audacious(1) โ€” go check on her, sheโ€™s the whole reason this little tool exists. ๐ŸŒธ

๐ŸŒ WEBSITE ๐ŸŒ

https://audacious-media-player.org โ€” come thru, bestie. ๐Ÿ’ปโœจ


mwah ๐Ÿ’‹ this page is rocking Version 4.6.2, dated September 2017, and itโ€™s the AUDTOOL(1) manual โ€” catch you in the group chat, bestie ๐Ÿซถ๐ŸŒˆ

๐Ÿ“ฆ where this page comes from