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
| # mpd server
# mpc client
pacman -S mpd mpc
# Configuration source
mkdir ~/.config/mpd
mkdir ~/.config/mpd/playlists
cp /usr/share/doc/mpd/mpdconf.example ~/.config/mpd/mpd.conf
# not root
# --user Connect to user service manager
systemctl --user enable mpd
systemctl --user start mpd
# mpc 客户端状态
mpc status
# 刷新 mpd 数据库
mpc update
# 查看所有歌曲
mpc listall
# mpc add <tab> 添加 歌曲 或 文件夹 到 播放列表
mpc add <tab>
# 播放
mpc play
# 音量 0-100
mpc volume 50
# repeat 循环开关
mpc repeat
# random 随即开关
mpc random
# single 单曲开关
mpc single
|