添加mpd配置
parent
31a640da71
commit
1d385684e0
25
README.md
25
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`键, 并把`大写键`改成一个用不到的日文键, 拿来做输入法切换。
|
||||
|
|
|
@ -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` 播放
|
Loading…
Reference in New Issue