1 3baa2617 2022-02-16 op .\" Copyright (c) 2022 Omar Polo <op@openbsd.org>
3 3baa2617 2022-02-16 op .\" Permission to use, copy, modify, and distribute this software for any
4 3baa2617 2022-02-16 op .\" purpose with or without fee is hereby granted, provided that the above
5 3baa2617 2022-02-16 op .\" copyright notice and this permission notice appear in all copies.
7 3baa2617 2022-02-16 op .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 3baa2617 2022-02-16 op .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 3baa2617 2022-02-16 op .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 3baa2617 2022-02-16 op .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 3baa2617 2022-02-16 op .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 3baa2617 2022-02-16 op .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 3baa2617 2022-02-16 op .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 2b907c6d 2022-02-17 op .Dd February 17, 2022
20 3baa2617 2022-02-16 op .Nd music player
24 3baa2617 2022-02-16 op .Op Fl s Ar socket
26 3baa2617 2022-02-16 op .Op Ar argument ...
27 3baa2617 2022-02-16 op .Sh DESCRIPTION
29 cfb00927 2022-02-17 op is a music player daemon and command-line utility that plays music
30 cfb00927 2022-02-17 op in the background.
31 cfb00927 2022-02-17 op The server is automatically started when the user interacts with
32 cfb00927 2022-02-17 op it, but it can be started manually by running
34 cfb00927 2022-02-17 op without any arguments.
36 3baa2617 2022-02-16 op The following options are available:
37 3baa2617 2022-02-16 op .Bl -tag -width 12m
39 3baa2617 2022-02-16 op Do not daemonize.
40 3baa2617 2022-02-16 op if this option is specified,
42 3baa2617 2022-02-16 op will run in the foreground and log to
44 cfb00927 2022-02-17 op It's ignored if any commands are given on the command line.
46 3baa2617 2022-02-16 op Produce more verbose output.
47 3baa2617 2022-02-16 op .It Fl s Ar socket
50 3baa2617 2022-02-16 op instead of the default
51 3baa2617 2022-02-16 op .Pa /tmp/amused-$UID
52 3baa2617 2022-02-16 op to communicate with the daemon.
55 3baa2617 2022-02-16 op The following commands are available:
56 3baa2617 2022-02-16 op .Bl -tag -width 12m
58 3baa2617 2022-02-16 op Enqueue the given files.
60 3baa2617 2022-02-16 op Erase the playlist.
61 40aa47d9 2022-02-19 op .It Cm jump Ar pattern
62 40aa47d9 2022-02-19 op Play the first song in the playing queue that matches
64 40aa47d9 2022-02-19 op .Pq a basic regexp .
65 ba7595d8 2022-02-17 op .It Cm load Op Ar file
66 ba7595d8 2022-02-17 op Load a playlist from
68 ba7595d8 2022-02-17 op which has one song per line.
69 ba7595d8 2022-02-17 op If not specified, reads from
72 40aa47d9 2022-02-19 op Play the next song.
74 40aa47d9 2022-02-19 op Pause the playback.
76 40aa47d9 2022-02-19 op Start or resume the playback.
78 40aa47d9 2022-02-19 op Play the previous song.
79 3ec4f99d 2022-02-19 op .It Cm repeat one|all on|off
80 3ec4f99d 2022-02-19 op Enable or disable the repetition of the current track
82 3ec4f99d 2022-02-19 op or of the playing queue
84 40aa47d9 2022-02-19 op .It Cm restart
85 40aa47d9 2022-02-19 op Rewind the current song to the beginning.
86 40aa47d9 2022-02-19 op .It Cm show Op Fl p
87 40aa47d9 2022-02-19 op Print the current playlist.
92 40aa47d9 2022-02-19 op list with the current playing song prefixed by
95 40aa47d9 2022-02-19 op Print playback status and current song.
97 40aa47d9 2022-02-19 op Stop the music player.
99 40aa47d9 2022-02-19 op Play/pause the playback.
102 cfb00927 2022-02-17 op Commands can be also abbreviated to the smallest unique prefix,
103 cfb00927 2022-02-17 op so that for example
105 cfb00927 2022-02-17 op can be given instead of
108 3baa2617 2022-02-16 op .Bl -tag -width "/tmp/amused-$UID" -compact
109 3baa2617 2022-02-16 op .It Pa /tmp/amused-$UID
110 3baa2617 2022-02-16 op UNIX-domain socket used for communication with the daemon.
113 2c35cd80 2022-02-17 op Enqueue all mp3 files in the current directory:
114 2c35cd80 2022-02-17 op .Bd -literal -offset indent
115 2c35cd80 2022-02-17 op $ amused add *.mp3
118 2c35cd80 2022-02-17 op Recursively add all opus files:
119 2c35cd80 2022-02-17 op .Bd -literal -offset indent
120 2c35cd80 2022-02-17 op $ find . -type f -iname \\*.opus -exec amused add {} +
123 2c35cd80 2022-02-17 op Save the state of the player to the file
125 2c35cd80 2022-02-17 op .Bd -literal -offset indent
126 2c35cd80 2022-02-17 op $ amused show > state
129 2c35cd80 2022-02-17 op Load a previous state:
130 2c35cd80 2022-02-17 op .Bd -literal -offset indent
131 2c35cd80 2022-02-17 op $ amused load < state
134 19ae7661 2022-02-17 op Randomize the current playlist:
135 19ae7661 2022-02-17 op .Bd -literal -offset indent
136 19ae7661 2022-02-17 op $ amused show | sort -R | amused load
139 19ae7661 2022-02-17 op Remove duplicates:
140 19ae7661 2022-02-17 op .Bd -literal -offset indent
141 19ae7661 2022-02-17 op $ amused show | sort | uniq | amused load
144 99b9b3af 2022-02-17 op Select a song with
146 99b9b3af 2022-02-17 op .Bd -literal -offset indent
147 99b9b3af 2022-02-17 op $ amused jump "$(amused show | fzf +s)"
153 3baa2617 2022-02-16 op utility was written by
154 3baa2617 2022-02-16 op .An Omar Polo Aq Mt op@openbsd.org .