From 1d385684e0299a02147349f811686d5e87213ea3 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 6 Jul 2023 06:48:18 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mpd=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 25 +++++++++++++++++++++++++ home/mpd/mpd.conf | 23 +++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 home/mpd/mpd.conf diff --git a/README.md b/README.md index 706e585..1e27a2b 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,31 @@ sudo apt install bspwm ly alacritty xserver-xorg picom polybar rofi feh - `feh` 壁纸设置器 +## 配套 + +```bash +# 音频相关 +sudo apt install pavucontrol pulseaudio + +# 蓝牙相关 +# 不安装 libspa-0.2-bluetooth, 连不上蓝牙耳机 +# +sudo apt install blueman libspa-0.2-bluetooth + +# 需要将蓝牙图标放到托盘上时, 可以执行以下命令添加启动 +# 不需要时, 可自行给polybar添加自定义模块, 因为托盘功能, 在polybar上体验不太好 +systemctl --user daemon-reload +systemctl --user enable blueman-applet +systemctl --user start blueman-applet +``` + + +## 娱乐功能 + +- `mpd, mpc` 音乐播放 + + + ### 一些系统配置 - `.Xmodmap` 键盘按键映射文件, 用于修改键盘按键。 我这里主要是调换`Super`和`Alt`键, 并把`大写键`改成一个用不到的日文键, 拿来做输入法切换。 diff --git a/home/mpd/mpd.conf b/home/mpd/mpd.conf new file mode 100644 index 0000000..45c6040 --- /dev/null +++ b/home/mpd/mpd.conf @@ -0,0 +1,23 @@ +## mpd 配置 + +music_directory "/data/music" + +playlist_directory "~/.mpd/playlists" +db_file "~/.mpd/mpd.db" +log_file "~/.mpd/mpd.log" +pid_file "~/.mpd/mpd.pid" +state_file "~/.mpd/mpdstate" + +bind_to_address "127.0.0.1" +port "6600" + +audio_output { + type "pulse" + name "pulse audio" +} + + +## mpc 客户端 +# `mpc update` 更新读取配置 +# `mpc listall | mpc add` 将歌曲加入播放列表 +# `mpc play` 播放 \ No newline at end of file