summaryrefslogtreecommitdiff
path: root/man/audtool.1.in
blob: 99619ff2bb221c2f88e325f2c7647986fcd8d25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
.TH AUDTOOL "1" "May 2016" "Version @PACKAGE_VERSION@"

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

.SH SYNOPSIS
.B audtool
[\fIinstance\fR] \fIcommand\fR [\fIparameter\fR ...] ...

.SH DESCRIPTION
.B audtool
sends commands to a running instance of Audacious.
.PP
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.
.PP
\fIinstance\fR may be given as \fB-1\fR, \fB-2\fR, etc. (up to \fB-9\fR) to
specify which instance of Audacious to control when multiple instances have been
started.

.SH COMMANDS
.SS Current song information:

.TP
.B --current-song
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 \fB--current-song-tuple-data title\fR instead.
.TP
.B --current-song-filename
Print the file name (full path or URI) of the current song.
.TP
.B --current-song-length
Print the length of the current song in M:SS format.
.TP
.B --current-song-length-seconds
Print the length of the current song in seconds.
.TP
.B --current-song-length-frames
Print the length of the current song in milliseconds.
.TP
.B --current-song-output-length
Print the playback time counter in M:SS format.
.TP
.B --current-song-output-length-seconds
Print the playback time counter in seconds.
.TP
.B --current-song-output-length-frames
Print the playback time counter in milliseconds.
.TP
.B --current-song-bitrate
Print the streaming bitrate in bits per second.
.TP
.B --current-song-bitrate-kbps
Print the streaming bitrate in kilobits per second (1 kilobit = 1000 bits).
.TP
.B --current-song-frequency
Print the sampling rate in hertz.
.TP
.B --current-song-frequency-khz
Print the sampling rate in kilohertz.
.TP
.B --current-song-channels
Print the number of audio channels.
.TP
.B --current-song-tuple-data \fIfield\fR
Print the value of a named field (\fBartist\FR, \fByear\fR, \fBgenre\fR, etc.)
for the current song.  If the field name is omitted, a list of allowed fields
will be printed.
.TP
.B --current-song-info
Print the streaming bitrate, sampling rate, and number of audio channels.

.SS Playback commands:

.TP
.B --playback-play
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.
.TP
.B --playback-pause
Pause playback, or resume if already paused.
.TP
.B --playback-playpause
Equivalent to \fB--playback-pause\fR if playback is active, otherwise
\fB--playback-play\fR.
.TP
.B --playback-stop
Stop playback.
.TP
.B --playback-playing
Return an exit code of 0 (true) if playback is active.
.TP
.B --playback-paused
Return an exit code of 0 (true) if playback is paused.
.TP
.B --playback-stopped
Return an exit code of 0 (true) if playback is not active.
.TP
.B --playback-status
Print the playback status (``playing'', ``paused'', or ``stopped'').
.TP
.B --playback-seek \fItime\fR
Seek to the given time in seconds, relative to the beginning of the song.
.TP
.B --playback-seek-relative \fItime\fR
Seek to the given time in seconds, relative to the current time counter.
.TP
.B --playback-record
Toggle recording of the output stream (using FileWriter).
.TP
.B --playback-recording
Return an exit code of 0 (true) if stream recording is enabled.

.SS Playlist commands:

.TP
.B --playlist-advance
Skip to the next song in the playlist.
.TP
.B --playlist-reverse
Skip to the previous song in the playlist.
.TP
.B --playlist-addurl \fIpath\fR
Add a song to end of the playlist.  Either a URI or a local file path (absolute
or relative) may be given.
.TP
.B --playlist-insurl \fIpath\fR \fIposition\fR
Insert a song at the given position (one-based) in the playlist.
.TP
.B --playlist-addurl-to-new-playlist \fIpath\fR
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.
.TP
.B --playlist-delete \fIposition\fR
Remove the song at the given position from the playlist.
.TP
.B --playlist-length
Print the number of songs in the playlist.
.TP
.B --playlist-song \fIposition\fR
Print the formatted title of a song in the playlist.
.TP
.B --playlist-song-filename \fIposition\fR
Print the file name (full path or URI) of a song in the playlist.
.TP
.B --playlist-song-length \fIposition\fR
Print the length of a song in the playlist in M:SS format.
.TP
.B --playlist-song-length-seconds \fIposition\fR
Print the length of a song in the playlist in seconds.
.TP
.B --playlist-song-length-frames \fIposition\fR
Print the length of a song in the playlist in milliseconds.
.TP
.B --playlist-tuple-data \fIfield\fR \fIposition\fR
Print the value of a named field for a song in the playlist.
.TP
.B --playlist-display
Print the titles of all the songs in the playlist.
.TP
.B --playlist-position
Print the position of the current song in the playlist.
.TP
.B --playlist-jump \fIposition\fR
Skip to the song at the given position in the playlist.
.TP
.B --playlist-clear
Clear the playlist.
.TP
.B --playlist-auto-advance-status
Print the status of playlist auto-advance (``on'' or ``off'').
.TP
.B --playlist-auto-advance-toggle
Toggle playlist auto-advance.
.TP
.B --playlist-repeat-status
Print the status of playlist repeat (``on'' or ``off'').
.TP
.B --playlist-repeat-toggle
Toggle playlist repeat.
.TP
.B --playlist-shuffle-status
Print the status of playlist shuffle (``on'' or ``off'').
.TP
.B --playlist-shuffle-toggle
Toggle playlist shuffle.
.TP
.B --playlist-stop-after-status
Print the ``stop after current song'' option (``on'' or ``off'').
.TP
.B --playlist-stop-after-toggle
Toggle the ``stop after current song'' option.

.SS More playlist commands:

.TP
.B --number-of-playlists
Print the number of open playlists.
.TP
.B --current-playlist
Print the number of the current playlist.  When a song is playing, the current
playlist is defined as the playlist containing that song.  Otherwise, it is the
playlist currently displayed in Audacious.
.TP
.B --play-current-playlist
Start playback.  If paused or previously stopped in the middle of a song,
playback will resume from the last point played.  There is no effect if playback
is already active and not paused.
.TP
.B --set-current-playlist \fIplaylist\fR
Switch to the given playlist.  If another playlist is playing, playback will
switch to this one, resuming from the last point played.  If playback is
currently paused, it will remain so after the switch.
.TP
.B --current-playlist-name
Print the title of the current playlist.
.TP
.B --set-current-playlist-name \fItitle\fR
Set the title of the current playlist.
.TP
.B --new-playlist
Insert a new playlist after the current one and switch to it as if
\fB--set-current-playlist\fR were used.
.TP
.B --delete-current-playlist
Remove the current playlist.  Playback, if active, will be stopped.

.SS Playlist queue commands:

.TP
.B --playqueue-add \fIposition\fR
Add the song at the given playlist position to the queue.
.TP
.B --playqueue-remove \fIposition\fR
Remove the song at the given playlist position from the queue.
.TP
.B --playqueue-is-queued \fIposition\fR
Return an exit code of 0 (true) if the song at the given playlist position is
in the queue.
.TP
.B --playqueue-get-queue-position \fIposition\fR
Print the queue position of the song at the given playlist position.
.TP
.B --playqueue-get-list-position \fIposition\fR
Print the playlist position of the song at the given queue position.
.TP
.B --playqueue-length
Print the number of songs in the queue.
.TP
.B --playqueue-display
Print the titles of all the songs in the queue.
.TP
.B --playqueue-clear
Clear the queue.

.SS Volume control and equalizer:

.TP
.B --get-volume
Print the current volume level in percent.
.TP
.B --set-volume \fIlevel\fR
Set the current volume level in percent.
.TP
.B --equalizer-activate [on|off]
Activate or deactivate the equalizer.
.TP
.B --equalizer-get
Print the equalizer settings (preamp and gain for all bands) in decibels.
.TP
.B --equalizer-set \fIpreamp\fR \fIband0\fR \fIband1\fR \fIband2\fR \fIband3\fR \fIband4\fR \fIband5\fR \fIband6\fR \fIband7\fR \fIband8\fR \fIband9\fR
Set the equalizer settings (preamp and gain for all bands) in decibels.
.TP
.B --equalizer-get-preamp
Print the equalizer pre-amplification in decibels.
.TP
.B --equalizer-set-preamp \fIpreamp\fR
Set the equalizer pre-amplification in decibels.
.TP
.B --equalizer-get-band \fIband\fR
Print the gain of the given equalizer band (0-9) in decibels.
.TP
.B --equalizer-set-band \fIband\fR \fIgain\fR
Set the gain of the given equalizer band (0-9) in decibels.

.SS Miscellaneous:

.TP
.B --mainwin-show [on|off]
Show or hide the Audacious window.
.TP
.B --filebrowser-show [on|off]
Show or hide the Add Files window.
.TP
.B --jumptofile-show [on|off]
Show or hide the Jump to Song window.
.TP
.B --preferences-show [on|off]
Show or hide the Settings window.
.TP
.B --about-show [on|off]
Show or hide the About window.
.TP
.B --version
Print version information.
.TP
.B --plugin-is-enabled \fIplugin\fR
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, \fBcrossfade\fR for \fI@plugindir@/Effect/crossfade.so\fR.
.TP
.B --plugin-enable \fIplugin\fR [on|off]
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.
.TP
.B --shutdown
Shut down Audacious.
.TP
.B --help
Print a brief summary of audtool commands.
.PP
Commands may be prefixed with `--' (GNU-style long options) or not, your choice.

.SH BUGS

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

.SH AUTHORS

.B audtool
was written by George Averill <nhjm@nhjm.net> and William
Pitcock <nenolod@atheme.org>.
.PP
This manual page was written by Adam Cecile <gandalf@le-vert.net> and Kiyoshi
Aman <kiyoshi@atheme.org>.  Some additional tweaks were done by William Pitcock
<nenolod@atheme.org> and Tony Vroon <chainsaw@gentoo.org>.  The manual page was
updated for Audacious 3.7 by John Lindgren <john.lindgren@aol.com>.
.PP
This work is licensed under a Creative Commons Attribution 3.0 Unported License
<http://creativecommons.org/licenses/by/3.0/>.

.SH "SEE ALSO"
.BR audacious (1)

.SH WEBSITE
.I http://audacious-media-player.org