1 .\" Copyright (c) 2022 Omar Polo <op@openbsd.org>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29 is a music player daemon and command-line utility.
31 If called without any sub-
33 it forks in the background and starts the daemon.
34 Once the daemon is running, music files can be enqueued and the reproduction
37 The following options are available:
41 if this option is specified,
43 will run in the foreground and log to
46 Produce more verbose output.
50 instead of the default
52 to communicate with the daemon.
55 The following commands are available:
58 Start or resume playing the playlist.
62 Play/pause the playback.
64 Stop the music player.
66 Rewind the current song from the beginning.
68 Enqueue the given files.
72 Print the current playlist.
77 list with the current playing song prefixed by
80 Print playback status and current song.
84 Play the previous song.
85 .It Cm load Op Ar file
88 which has one song per line.
89 If not specified, reads from
93 .Bl -tag -width "/tmp/amused-$UID" -compact
94 .It Pa /tmp/amused-$UID
95 UNIX-domain socket used for communication with the daemon.
98 Enqueue all mp3 files in the current directory:
99 .Bd -literal -offset indent
103 Recursively add all opus files:
104 .Bd -literal -offset indent
105 $ find . -type f -iname \\*.opus -exec amused add {} +
108 Save the state of the player to the file
110 .Bd -literal -offset indent
111 $ amused show > state
114 Load a previous state:
115 .Bd -literal -offset indent
116 $ amused load < state
119 Randomize the current playlist:
120 .Bd -literal -offset indent
121 $ amused show | sort -R | amused load
125 .Bd -literal -offset indent
126 $ amused show | sort | uniq | amused load
132 utility was written by
133 .An Omar Polo Aq Mt op@openbsd.org .