LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

audtool

Command-line interface for controlling the Audacious media player.

TLDR

Get current song
$ audtool current-song
copy
Play/Pause playback
$ audtool playback-playpause
copy
Skip to next track
$ audtool playlist-advance
copy
Get playback status
$ audtool playback-status
copy
Set volume
$ audtool set-volume [75]
copy

SYNOPSIS

audtool [instance] command [parameter ...] ...Commands may optionally be prefixed with -- (GNU long-option style); both current-song and --current-song work.

DESCRIPTION

audtool is a command-line interface for controlling the Audacious media player. It allows remote control, playlist management, and status queries without opening the GUI.The tool is useful for scripts, keybindings, and automation.

PARAMETERS

playback-play

Start playback
playback-pause
Pause playback
playback-playpause
Toggle play/pause
playback-stop
Stop playback
playback-status
Show playback status
playlist-advance
Next track
playlist-reverse
Previous track
current-song
Print current song info
current-song-filename
Print filename of current song
current-song-length
Print length of the current song in M:SS format
set-volume n
Set volume (0-100)
get-volume
Get current volume
playlist-length
Number of tracks in playlist
playlist-song n
Get song at position n

INSTALL

sudo apt install audacious
copy
sudo dnf install audacious
copy
sudo pacman -S audacious
copy
sudo apk add audacious
copy
sudo zypper install audacious
copy
brew install audacious
copy
nix profile install nixpkgs#audacious
copy

CAVEATS

Requires Audacious to be running. Commands fail if player is not active. Some features depend on Audacious version.

HISTORY

audtool was developed alongside Audacious to provide scriptable control, continuing the tradition of beep-media-player-control and xmmsctrl.

SEE ALSO

RESOURCES

Copied to clipboard
Kai