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 that plays music
31 The server is automatically started when the user interacts with
32 it, but it can be started manually by running
34 without any arguments.
36 The following options are available:
40 if this option is specified,
42 will run in the foreground and log to
44 It's ignored if any commands are given on the command line.
46 Produce more verbose output.
50 instead of the default
52 to communicate with the daemon.
55 The following commands are available:
58 Enqueue the given files.
61 .It Cm jump Ar pattern
62 Play the first song in the playing queue that matches
65 .It Cm load Op Ar file
68 which has one song per line.
69 If not specified, reads from
76 Start or resume the playback.
78 Play the previous song.
79 .It Cm repeat one|all on|off
80 Enable or disable the repetition of the current track
82 or of the playing queue
85 Rewind the current song to the beginning.
87 Print the current playlist.
92 list with the current playing song prefixed by
95 Print playback status and current song.
97 Stop the music player.
99 Play/pause the playback.
102 Commands can be also abbreviated to the smallest unique prefix,
105 can be given instead of
108 .Bl -tag -width "/tmp/amused-$UID" -compact
109 .It Pa /tmp/amused-$UID
110 UNIX-domain socket used for communication with the daemon.
113 Enqueue all mp3 files in the current directory:
114 .Bd -literal -offset indent
118 Recursively add all opus files:
119 .Bd -literal -offset indent
120 $ find . -type f -iname \\*.opus -exec amused add {} +
123 Save the state of the player to the file
125 .Bd -literal -offset indent
126 $ amused show > state
129 Load a previous state:
130 .Bd -literal -offset indent
131 $ amused load < state
134 Randomize the current playlist:
135 .Bd -literal -offset indent
136 $ amused show | sort -R | amused load
140 .Bd -literal -offset indent
141 $ amused show | sort | uniq | amused load
146 .Bd -literal -offset indent
147 $ amused jump "$(amused show | fzf +s)"
153 utility was written by
154 .An Omar Polo Aq Mt op@openbsd.org .