-
Notifications
You must be signed in to change notification settings - Fork 2
/
siren.1
1254 lines (1254 loc) · 28.2 KB
/
siren.1
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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.\" Copyright (c) 2011 Tim van der Molen <[email protected]>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd May 2, 2019
.Dt SIREN 1
.Os
.Sh NAME
.Nm siren
.Nd text-based audio player
.Sh SYNOPSIS
.Nm siren
.Op Fl lv
.Op Fl c Ar directory
.Sh DESCRIPTION
.Nm
is a text-based audio player.
.Pp
The options are as follows.
.Bl -tag -width Ds
.It Fl c Ar directory
Use
.Ar directory
as the configuration directory.
The default is
.Pa ~/.siren .
.It Fl l
Log error and informational messages to a file.
The file is created in the current directory and named
.Pa siren-%d.log
where
.Pa %d
is replaced with
.Nm Ap s
process ID.
.It Fl v
Print version information and exit.
.El
.Sh USER INTERFACE
.Nm Ap s
user interface consists of three areas.
.Pp
The bottom line is the status line.
It is used to display error and informational messages and to enter commands
and search queries.
.Pp
The two lines above the status line show playback-related information, such as
the currently playing track and the volume level.
.Pp
The remainder of the screen is used to display a view.
Only one view can be displayed at a time, but each view can be selected with
the
.Ic select-view
command
.Po
see
.Sx COMMANDS
below
.Pc
or the default key bindings.
.Pp
The available views are as follows.
.Bl -tag -width Ds
.It Sy Library view
The library view shows all tracks in the library.
The
.Ic add-path
command may be used to add tracks.
The library view can be displayed by pressing the
.Ic 1
key.
.It Sy Playlist view
The playlist view shows the playlist loaded with the
.Ic load-playlist
command.
It can be displayed by pressing the
.Ic 2
key.
.It Sy Browser view
The browser view shows the contents of a directory.
By default only directories and supported audio files are shown.
The browser view can be used to browse through the file system and play back
audio files or add them to the library or queue.
The browser view can be displayed by pressing the
.Ic 3
key.
.It Sy Queue view
The queue view shows all tracks that have been added to the queue.
Tracks in the queue will be played back before those in other views.
A track will be removed from the queue as soon as it is being played back.
The queue view can be displayed by pressing the
.Ic 4
key.
.El
.Pp
The playback source is the view that provides the tracks for playback.
The library, playlist and browser views each can act as a playback source.
A view implicitly becomes the playback source whenever a track from that view
is selected for playback.
.Sh KEY BINDINGS
.Nm
supports configurable key bindings.
Each key binding has a scope: it is either specific to one view or common to
all views.
Key bindings are changed with the
.Ic bind-key
and
.Ic unbind-key
commands or shown with the
.Ic show-binding
command.
.Pp
The default key bindings are as follows.
.Bl -tag -width Ds
.It Sy Common key bindings
.Bl -tag -width "^F, page-down" -compact
.It q
Quit
.Nm .
.It x
Play.
.It c
Pause.
.It v
Stop.
.It z
Play the previous track.
.It b
Play the next track.
.It left
Skip backward 5 seconds.
.It ,
Skip backward 1 minute.
.It <
Skip backward 5 minutes.
.It right
Skip forward 5 seconds.
.It .
Skip forward 1 minute.
.It >
Skip forward 5 minutes.
.It -
Decrease the sound volume by 5%.
.It _
Decrease the sound volume by 10%.
.It =
Increase the sound volume by 5%.
.It +
Increase the sound volume by 10%.
.It C
Toggle playback continuation.
.It R
Toggle the repeated playback of all tracks.
.It r
Toggle the repeated playback of the current track.
.It 1
Select the library view.
.It 2
Select the playlist view.
.It 3
Select the browser view.
.It 4
Select the queue view.
.It enter
Activate the selected entry.
.It i
Select the active entry.
.It k, up
Select the previous entry.
.It j, down
Select the next entry.
.It g, home
Select the first entry.
.It G, end
Select the last entry.
.It ^B, page-up
Scroll up one page.
.It ^U
Scroll up half a page.
.It ^Y
Scroll up one line.
.It ^F, page-down
Scroll down one page.
.It ^D
Scroll down half a page.
.It ^E
Scroll down one line.
.It ^L
Refresh the screen.
.It :
Enter the command prompt.
.It /
Enter the search prompt to search forward.
.It ?
Enter the search prompt to search backward.
.It N, p
Search for the previous occurrence.
.It n
Search for the next occurrence.
.It X
Play the active track in the current view, even if that view is not the
playback source.
.It s
Make the current view the playback source.
.El
.It Sy Library view key bindings
.Bl -tag -width "^F, page-down" -compact
.It a
Add the selected entry to the queue.
.It d, delete
Delete the selected entry.
.It l
Delete all entries.
.El
.It Sy Playlist view key bindings
.Bl -tag -width "^F, page-down" -compact
.It a
Add the selected entry to the queue.
.El
.It Sy Browser view key bindings
.Bl -tag -width "^F, page-down" -compact
.It a
Add the selected entry to the queue.
.It h
Toggle the display of hidden files.
.It ^R
Refresh the current directory.
.It backspace
Enter the parent directory.
.El
.It Sy Queue view key bindings
.Bl -tag -width "^F, page-down" -compact
.It J
Move the selected entry downward.
.It K
Move the selected entry upward.
.It d, delete
Delete the selected entry.
.It l
Delete all entries.
.El
.It Sy Prompt key bindings
The key bindings for the prompt currently cannot be changed.
.Pp
.Bl -tag -width "^F, page-down" -compact
.It enter
Process the line and exit the prompt.
.It ^G, escape
Cancel and exit the prompt.
.It ^B, left
Move the cursor to the previous character.
.It ^F, right
Move the cursor to the next character.
.It ^A, home
Move the cursor to the beginning of the line.
.It ^E, end
Move the cursor to the end of the line.
.It ^H, backspace
Delete the character before the cursor.
.It ^D, delete
Delete the character the cursor is at.
.It ^W
Delete the word before the cursor.
.It ^K
Delete all characters from the cursor to the end of the line.
.It ^U
Delete the entire line.
.It down
Replace the line with the previous history entry.
.It up
Replace the line with the next history entry.
.El
.El
.Sh COMMANDS
.Nm
is controlled by issuing commands.
Commands can be entered at the command prompt, bound to a key or added to the
configuration file.
.Pp
Commands are parsed in a way similar to most shells.
A command line is delimited by a newline character or a
.Sq #
character.
A
.Sq #
character introduces a comment and extends to the end of the line.
.Pp
A command line is broken into separate words.
A word is a sequence of characters and is delimited by one or more space or tab
characters.
On each word, tilde expansion and
.Xr glob 7
pattern expansion is performed.
.Pp
The
.Sq # ,
.Sq ~ ,
.Sq * ,
.Sq \&? ,
.Sq \&[ ,
.Sq \e ,
.Sq \&'
and
.Sq \&"
characters and the space and tab characters are special characters.
A special character can be escaped by prepending it with a
.Sq \e
character or by enclosing it by matching
.Sq \&'
or
.Sq \&"
characters.
.Pp
The following commands are available.
.Bl -tag -width Ds
.It Ic activate-entry
Activate the selected entry in the current view.
In the library and playlist views, an activated entry is played back.
In the browser view, if the activated entry is a directory, it is entered.
Otherwise, if it is a file, it is played back.
In the queue view, an activated entry is played back and removed from the
queue.
.It Ic add-entry Op Fl l | q
Add the selected entry to the library or the queue.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl l
Add the selected entry to the library.
This is the default.
.It Fl q
Add the selected entry to the queue.
.El
.It Xo
.Ic add-path
.Op Fl l | q
.Ar path ...
.Xc
Add an audio file or a directory to the library or the queue.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl l
Add
.Ar path
to the library.
.It Fl q
Add
.Ar path
to the queue.
.El
.Pp
The default is to add
.Ar path
to the current view.
If
.Ar path
is a directory, then all audio files in it are added.
.It Ic bind-key Ar scope key command
Bind a key to a command.
.Pp
The
.Ar scope
argument specifies the scope of the key binding.
It should be one of
.Ar browser ,
.Ar library ,
.Ar playlist ,
.Ar queue
or
.Ar common .
.Pp
A key binding is first looked up in the scope of the current view.
If no key binding is found in that scope, then it is looked up in the
.Ar common
scope.
.Pp
The
.Ar key
argument specifies the key to bind.
The following three types of keys can be bound.
.Bl -dash
.It
The printable ASCII characters: these are the ASCII character codes between 32
and 126 decimal.
They are represented by themselves.
.It
The ASCII control characters: these are the ASCII character codes between 0 and
31 decimal.
They are specified in case-insensitive caret notation.
For example,
.Ar ^A
and
.Ar ^a
both denote the second control character.
.It
The following case-insensitive key-names are recognised:
.Ar backspace ,
.Ar backtab ,
.Ar delete ,
.Ar down ,
.Ar end ,
.Ar enter ,
.Ar escape ,
.Ar home ,
.Ar insert ,
.Ar left ,
.Ar page-down ,
.Ar page-up ,
.Ar right ,
.Ar space ,
.Ar tab ,
.Ar up
and
.Ar f1
to
.Ar f20 .
.El
.Pp
The
.Ar command
argument can be any command listed in this section.
.It Ic cd Op Ar directory
Change the current working directory to
.Ar directory
and open it in the browser view.
If
.Ar directory
is not specified, the user's home directory is used instead.
.It Ic close-output-plugin
Close the output plug-in.
This may be useful if
.Nm
blocks audio access for other programs.
.It Ic command-prompt
Enter the command prompt.
The command prompt can be used to enter and execute commands.
.It Ic delete-entry Op Fl a
Delete the selected entry in the current view.
This command is supported in the library and queue views only.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl a
Delete all entries in the current view.
.El
.It Ic load-playlist Ar file
Load the playlist
.Ar file
into the playlist view.
Each line of
.Ar file
should contain the path to a track.
Empty lines and lines starting with the
.Sq #
character are ignored.
.It Ic move-entry-down
Move the selected entry after its succeeding entry.
This command is supported in the queue view only.
.It Ic move-entry-up
Move the entry before its preceding entry.
This command is supported in the queue view only.
.It Ic pause
Pause or resume playback.
.It Ic play
Start, restart or resume playback.
.It Ic play-active
Play the active track in the current view, even if that view is not the
playback source.
.It Ic play-next
Play the next track in the playback source.
.It Ic play-prev
Play the previous track in the playback source.
.It Ic pwd
Print the current working directory.
.It Ic quit
Quit
.Nm .
.It Ic refresh-screen
Refresh the screen.
.It Ic reopen-output-plugin
Reopen the output plug-in.
.It Ic reread-directory
Reread the current directory in the browser view.
.It Ic save-library
Save the library to disk.
The library is automatically saved when
.Nm
quits.
.It Ic save-metadata
Save the metadata cache to disk.
The metadata cache is automatically saved when
.Nm
quits.
.It Xo
.Ic scroll-down
.Op Fl h | l | p
.Xc
Scroll down in the current view.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl h
Scroll half a page.
.It Fl l
Scroll one line.
This is the default.
.It Fl p
Scroll one page.
.El
.It Xo
.Ic scroll-up
.Op Fl h | l | p
.Xc
Scroll up in the current view.
The options are analogous to those of the
.Ic scroll-down
command.
.It Ic search-next
Search for the next occurrence of the text earlier specified with the
.Ic search-prompt
command.
.It Ic search-prev
Search for the previous occurrence of the text earlier specified with the
.Ic search-prompt
command.
.It Ic search-prompt Op Fl b
Enter the search prompt.
The search prompt can be used to search in the current view.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl b
Search backward.
The default is to search forward.
.El
.It Xo
.Ic seek
.Op Fl b | f
.Oo Oo Ar hours Ns Cm \&: Oc Ns Ar minutes Ns Cm \&: Oc Ns Ar seconds
.Xc
Seek to the specified position in the currently playing track.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl b
Seek backward by subtracting the specified position from the current position.
.It Fl f
Seek forward by adding the specified position to the current position.
.El
.It Ic select-active-entry
Select the active entry in the current view.
.It Ic select-first-entry
Select the first entry in the current view.
.It Ic select-last-entry
Select the last entry in the current view.
.It Ic select-next-entry
Select the next entry in the current view.
.It Ic select-prev-entry
Select the previous entry in the current view.
.It Ic select-view Ar name
Select a view.
The
.Ar name
argument must be one of
.Em browser ,
.Em library ,
.Em playlist
or
.Em queue .
.It Ic set Ar option Op Ar value
Set
.Ar option
to
.Ar value .
If
.Ar option
is a Boolean value and
.Ar value
is not specified, it is toggled.
See
.Sx OPTIONS
below for a list of available options.
.It Ic set-playback-source Op Ar source
Set the playback source.
The
.Ar source
argument must be one of
.Em browser ,
.Em library
or
.Em playlist .
If
.Ar source
is not specified, the current view is used, if possible.
.It Xo
.Ic set-volume
.Op Fl d | i
.Ar level
.Xc
Set the volume level.
The
.Ar level
argument should be an integer value between 0 and 100.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl d
Decrease the volume level by
.Ar level .
.It Fl i
Increase the volume level by
.Ar level .
.El
.Pp
Not all output plug-ins have volume support.
.Pp
When using the
.Em oss
output plug-in on
.Fx ,
the volume level may be reset every time a track is played back.
To preserve the volume level, set the
.Em hw.snd.vpc_autoreset
.Xr sysctl 8
variable to 0.
See
.Xr sound 4
for more information.
.It Ic show-binding Ar scope key
Show the command bound to
.Ar key .
The
.Ar scope
and
.Ar key
arguments are analogous to those of the
.Ic bind-key
command.
.It Ic show-option Ar option
Show the value of
.Ar option .
.It Ic source Ar file
Execute the commands in
.Ar file .
.It Ic stop
Stop playback.
.It Ic unbind-key Ar scope key
Unbind
.Ar key .
The
.Ar scope
and
.Ar key
arguments are analogous to those of the
.Ic bind-key
command.
.It Ic update-metadata Op Fl d
Update the metadata cache.
The options are as follows.
.Pp
.Bl -tag -width Ds -compact
.It Fl d
Delete the metadata of tracks that cannot be found on the file system.
.El
.El
.Sh OPTIONS
The appearance and behaviour of
.Nm
may be modified by changing the value of various options.
Options are changed with the
.Ic set
command or shown with the
.Ic show-option
command.
.Pp
There are six types of options.
They are as follows.
.Bl -tag -width Ds
.It Sy Attribute options
Attribute options control the character attributes of a user-interface element.
Valid values are
.Em blink ,
.Em bold ,
.Em dim ,
.Em normal ,
.Em reverse ,
.Em standout
and
.Em underline .
Two or more attributes can be specified by separating them by a comma.
.It Sy Colour options
Colour options control the foreground and background colour of a user-interface
element.
Valid values are
.Em black ,
.Em blue ,
.Em cyan ,
.Em green ,
.Em magenta ,
.Em red ,
.Em white ,
.Em yellow ,
.Em default
and
.Em colour0
to
.Em colourN
where
.Em N
+ 1 is the number of colours supported by the terminal.
.Pp
If supported by the terminal, the colour
.Em default
corresponds to the terminal's original background or foreground colour.
Otherwise,
.Em default
is equivalent to
.Em black
when used as a background colour and to
.Em white
when used as a foreground colour.
.It Sy Boolean options
Valid values of Boolean options are
.Em true
and
.Em false .
As a convenience, the values
.Em on ,
.Em off ,
.Em yes ,
.Em no ,
.Em 1
and
.Em 0
are accepted as well.
.It Sy Number options
Valid values of number options are non-negative integers.
The maximum value is option-specific.
.It Sy String options
Valid values of string options are option-specific.
.It Sy Format-string options
Format-string options control the formatting of information displayed on the
screen.
The syntax is reminiscent of that of the
.Xr printf 3
family of functions.
.Pp
A format string consists of ordinary characters, which are displayed unchanged,
and format fields, which specify how a variable is to be displayed.
A format field is introduced by the
.Sq %
character.
Then, the following appears in sequence.
.Bl -dash
.It
An optional
.Sq -
character to specify that the variable is to be left-aligned within the field.
The default is to right-align.
.It
An optional
.Sq 0
character to specify that the variable is to be padded with leading zeroes.
The default is to pad with space characters.
This flag is ignored if the variable is to be left-aligned.
.It
An optional sequence of numeric characters to specify the field width.
If the
.Sq *
character is specified, the width is variable and will be so long as possible.
If there are two or more fields with a variable width, the available space will
be divided equally between them.
.It
The name of the variable to display, enclosed by braces
.Po
i.e. the
.Sq {
and
.Sq }
characters
.Pc .
Some variables also have a one-character alias.
If this alias is specified, the braces may be omitted.
Which variables are available is dependent on the option.
.Pp
Conditional fields are also supported.
A conditional field is enclosed in braces and begins with a
.Sq \&?
character, followed by the name of the variable and two comma-separated fields.
If the variable is a non-zero number or a non-empty string, the first value is
displayed; otherwise, the second value.
For example,
.Sq %{?artist,yes,no}
displays
.Sq yes
if
.Em artist
is a non-empty string and
.Sq no
otherwise.
.El
.Pp
A literal
.Sq %
character is displayed by specifying
.Sq %%
in the format string.
.El
.Pp
The following options are available.
.Bl -tag -width Ds
.It Cm active-attr Pq attribute
Character attributes for the activated menu entry.
The default is
.Em normal .
.It Cm active-bg Pq colour
Background colour for the activated menu entry.
The default is
.Em default .
.It Cm active-fg Pq colour
Foreground colour for the activated menu entry.
The default is
.Em yellow .
.It Cm continue Pq Boolean
Whether to play the next track if the current track has finished.
The default is
.Em true .
.It Cm continue-after-error Pq Boolean
Whether to play the next track if playback of the current track was stopped due
to an error.
The default is
.Em false .
.It Cm error-attr Pq attribute
Character attributes for error messages.
The default is
.Em normal .
.It Cm error-bg Pq colour
Background colour for error messages.
The default is
.Em default .
.It Cm error-fg Pq colour
Foreground colour for error messages.
The default is
.Em red .
.It Cm info-attr Pq attribute
Character attributes for informational messages.
The default is
.Em normal .
.It Cm info-bg Pq colour
Background colour for informational messages.
The default is
.Em default .
.It Cm info-fg Pq colour
Foreground colour for informational messages.
The default is
.Em cyan .
.It Cm library-format Pq format string
The format used to display tracks in the library.
The following variables are available.
.Bl -column tracknumber alias
.It Sy Name Ta Sy Alias Ta Sy Description
.It album Ta l Ta Album
.It albumartist Ta A Ta Album artist
.It artist Ta a Ta Artist
.It comment Ta c Ta Comment
.It date Ta y Ta Date or year
.It discnumber Ta s Ta Disc number
.It disctotal Ta S Ta Total number of discs
.It duration Ta d Ta Duration Pq as So m:ss Sc or So h:mm:ss Sc
.It filename Ta F Ta Filename
.It genre Ta g Ta Genre
.It path Ta f Ta File path
.It title Ta t Ta Title
.It tracknumber Ta n Ta Track number
.It tracktotal Ta N Ta Total number of tracks
.El
.Pp
The default is
.Sq %-*a %-*l %4y %2n. %-*t %5d .
.It Cm library-format-alt Pq format string
The alternative format used to display tracks in the library that have a
missing or empty
.Em title
metadata field.
See the
.Cm library-format
option for a list of available variables.
If this option is empty, the
.Cm library-format
option is used.
The default is
.Sq %-*F %5d .
.It Cm output-plugin Pq string
The name of the output plug-in to use.
If the special name
.Ar default
is specified, the output plug-in with the highest priority will be used.
.Pp
The following output plug-ins may be available, depending on the compile-time
options used.
They are listed in descending order of priority.
.Pp
.Bl -tag -width portaudio -compact
.It sndio
.Ox
.Xr sndio 7
output plug-in
.It pulse
PulseAudio output plug-in
.It sun
Sun output plug-in
.It alsa
ALSA output plug-in
.It oss
OSS output plug-in
.It ao
libao output plug-in
.It portaudio
PortAudio output plug-in
.El
.Pp
The default is
.Sq default .
.It Cm player-attr Pq attribute
Character attributes for the player area.
The default is
.Em reverse .
.It Cm player-bg Pq colour
Background colour for the player area.
The default is
.Em default .
.It Cm player-fg Pq colour
Foreground colour of the player area.
The default is
.Em default .
.It Cm player-status-format Pq format string
The format used to display the player status.
The following variables are available.
.Bl -column repeat-track alias
.It Sy Name Ta Sy Alias Ta Sy Description
.It continue Ta c Ta
Expands to
.Sq continue
or the empty string, depending on the value of the
.Cm continue
option
.It duration Ta d Ta
Duration of the currently playing track
.Pq as So m:ss Sc or So h:mm:ss Sc
.It position Ta p Ta
Position in the currently playing track
.Pq as So m:ss Sc or So h:mm:ss Sc
.It repeat-all Ta r Ta
Expands to
.Sq repeat-all
or the empty string, depending on the value of the
.Cm repeat-all
option
.It repeat-track Ta t Ta
Expands to
.Sq repeat-track
or the empty string, depending on the value of the
.Cm repeat-track
option
.It source Ta u Ta
Playback source
.It state Ta s Ta
Expands to
.Sq Playing ,
.Sq Paused
or
.Sq Stopped ,
depending on the playback state
.It volume Ta v Ta Sound volume
.El
.Pp
The default is:
.Bd -literal -offset indent
%-7s %5p / %5d %3v%% %u%{?c, continue,}%{?r, repeat-all,}%{?t, repeat-track,}
.Ed
.It Cm player-track-format Pq format string
The format used to display the currently playing track.
See the
.Cm library-format
option for a list of available variables.
The default is
.Sq %a - %l (%y) - %n. %t .
.It Cm player-track-format-alt Pq format string
The alternative format used to display the currently playing track if it has a