Blame
Date:
Sat Feb 19 10:57:07 2022 UTC
Message:
tweak comment about re/repeat, it's not unique anymore
001
2022-02-16
op
.\" Copyright (c) 2022 Omar Polo <op@openbsd.org>
002
2022-02-16
op
.\"
003
2022-02-16
op
.\" Permission to use, copy, modify, and distribute this software for any
004
2022-02-16
op
.\" purpose with or without fee is hereby granted, provided that the above
005
2022-02-16
op
.\" copyright notice and this permission notice appear in all copies.
006
2022-02-16
op
.\"
007
2022-02-16
op
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
008
2022-02-16
op
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
009
2022-02-16
op
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
010
2022-02-16
op
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
011
2022-02-16
op
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
012
2022-02-16
op
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
013
2022-02-16
op
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
014
2022-02-16
op
.\"
015
2022-02-17
op
.Dd February 17, 2022
016
2022-02-16
op
.Dt AMUSED 1
017
2022-02-16
op
.Os
018
2022-02-16
op
.Sh NAME
019
2022-02-16
op
.Nm amused
020
2022-02-16
op
.Nd music player
021
2022-02-16
op
.Sh SYNOPSIS
022
2022-02-16
op
.Nm
023
2022-02-16
op
.Op Fl dv
024
2022-02-16
op
.Op Fl s Ar socket
025
2022-02-16
op
.Ar command
026
2022-02-16
op
.Op Ar argument ...
027
2022-02-16
op
.Sh DESCRIPTION
028
2022-02-16
op
.Nm
029
2022-02-17
op
is a music player daemon and command-line utility that plays music
030
2022-02-17
op
in the background.
031
2022-02-17
op
The server is automatically started when the user interacts with
032
2022-02-17
op
it, but it can be started manually by running
033
2022-02-17
op
.Nm
034
2022-02-17
op
without any arguments.
035
2022-02-16
op
.Pp
036
2022-02-16
op
The following options are available:
037
2022-02-16
op
.Bl -tag -width 12m
038
2022-02-16
op
.It Fl d
039
2022-02-16
op
Do not daemonize.
040
2022-02-16
op
if this option is specified,
041
2022-02-16
op
.Nm
042
2022-02-16
op
will run in the foreground and log to
043
2022-02-16
op
.Em stderr .
044
2022-02-17
op
It's ignored if any commands are given on the command line.
045
2022-02-16
op
.It Fl v
046
2022-02-16
op
Produce more verbose output.
047
2022-02-16
op
.It Fl s Ar socket
048
2022-02-16
op
Use
049
2022-02-16
op
.Ar socket
050
2022-02-16
op
instead of the default
051
2022-02-16
op
.Pa /tmp/amused-$UID
052
2022-02-16
op
to communicate with the daemon.
053
2022-02-16
op
.El
054
2022-02-16
op
.Pp
055
2022-02-16
op
The following commands are available:
056
2022-02-16
op
.Bl -tag -width 12m
057
2022-02-16
op
.It Cm add Ar
058
2022-02-16
op
Enqueue the given files.
059
2022-02-16
op
.It Cm flush
060
2022-02-16
op
Erase the playlist.
061
2022-02-19
op
.It Cm jump Ar pattern
062
2022-02-19
op
Play the first song in the playing queue that matches
063
2022-02-19
op
.Ar pattern
064
2022-02-19
op
.Pq a basic regexp .
065
2022-02-17
op
.It Cm load Op Ar file
066
2022-02-17
op
Load a playlist from
067
2022-02-17
op
.Ar file ,
068
2022-02-17
op
which has one song per line.
069
2022-02-17
op
If not specified, reads from
070
2022-02-17
op
.Em stdin .
071
2022-02-19
op
.It Cm next
072
2022-02-19
op
Play the next song.
073
2022-02-19
op
.It Cm pause
074
2022-02-19
op
Pause the playback.
075
2022-02-19
op
.It Cm play
076
2022-02-19
op
Start or resume the playback.
077
2022-02-19
op
.It Cm prev
078
2022-02-19
op
Play the previous song.
079
2022-02-19
op
.It Cm repeat one|all on|off
080
2022-02-19
op
Enable or disable the repetition of the current track
081
2022-02-19
op
.Pq Cm one
082
2022-02-19
op
or of the playing queue
083
2022-02-19
op
.Pq Cm all .
084
2022-02-19
op
.It Cm restart
085
2022-02-19
op
Rewind the current song to the beginning.
086
2022-02-19
op
.It Cm show Op Fl p
087
2022-02-19
op
Print the current playlist.
088
2022-02-19
op
With
089
2022-02-19
op
.Fl p
090
2022-02-19
op
it prints a
091
2022-02-19
op
.Dq pretty
092
2022-02-19
op
list with the current playing song prefixed by
093
2022-02-19
op
.Sq > \& .
094
2022-02-19
op
.It Cm status
095
2022-02-19
op
Print playback status and current song.
096
2022-02-19
op
.It Cm stop
097
2022-02-19
op
Stop the music player.
098
2022-02-19
op
.It Cm toggle
099
2022-02-19
op
Play/pause the playback.
100
2022-02-16
op
.El
101
2022-02-17
op
.Pp
102
2022-02-17
op
Commands can be also abbreviated to the smallest unique prefix,
103
2022-02-17
op
so that for example
104
2022-02-19
op
.Sq rep
105
2022-02-17
op
can be given instead of
106
2022-02-19
op
.Sq repeat .
107
2022-02-16
op
.Sh FILES
108
2022-02-16
op
.Bl -tag -width "/tmp/amused-$UID" -compact
109
2022-02-16
op
.It Pa /tmp/amused-$UID
110
2022-02-16
op
UNIX-domain socket used for communication with the daemon.
111
2022-02-16
op
.El
112
2022-02-17
op
.Sh EXAMPLES
113
2022-02-17
op
Enqueue all mp3 files in the current directory:
114
2022-02-17
op
.Bd -literal -offset indent
115
2022-02-17
op
$ amused add *.mp3
116
2022-02-17
op
.Ed
117
2022-02-17
op
.Pp
118
2022-02-17
op
Recursively add all opus files:
119
2022-02-17
op
.Bd -literal -offset indent
120
2022-02-17
op
$ find . -type f -iname \\*.opus -exec amused add {} +
121
2022-02-17
op
.Ed
122
2022-02-17
op
.Pp
123
2022-02-17
op
Save the state of the player to the file
124
2022-02-17
op
.Pa state :
125
2022-02-17
op
.Bd -literal -offset indent
126
2022-02-17
op
$ amused show > state
127
2022-02-17
op
.Ed
128
2022-02-17
op
.Pp
129
2022-02-17
op
Load a previous state:
130
2022-02-17
op
.Bd -literal -offset indent
131
2022-02-17
op
$ amused load < state
132
2022-02-17
op
.Ed
133
2022-02-17
op
.Pp
134
2022-02-17
op
Randomize the current playlist:
135
2022-02-17
op
.Bd -literal -offset indent
136
2022-02-17
op
$ amused show | sort -R | amused load
137
2022-02-17
op
.Ed
138
2022-02-17
op
.Pp
139
2022-02-17
op
Remove duplicates:
140
2022-02-17
op
.Bd -literal -offset indent
141
2022-02-17
op
$ amused show | sort | uniq | amused load
142
2022-02-17
op
.Ed
143
2022-02-17
op
.Pp
144
2022-02-17
op
Select a song with
145
2022-02-17
op
.Xr fzf 1
146
2022-02-17
op
.Bd -literal -offset indent
147
2022-02-17
op
$ amused jump "$(amused show | fzf +s)"
148
2022-02-17
op
.Ed
149
2022-02-16
op
.Sh AUTHORS
150
2022-02-16
op
.An -nosplit
151
2022-02-16
op
Then
152
2022-02-16
op
.Nm
153
2022-02-16
op
utility was written by
154
2022-02-16
op
.An Omar Polo Aq Mt op@openbsd.org .
Omar Polo