Compton 与 PulseAudio 在 CentOS 的协作说明与正确配置
一、角色澄清
二、在 CentOS 上的正确配置步骤
sudo yum install comptonsudo dnf install compton~/.config/compton.conf 或 /etc/xdg/compton.conf(不存在可新建)。backend = "glx"
vsync = true
shadow = true
opacity = 0.9
fade = true
[shadow]
shadow-radius = 5
shadow-offset-x = 1
shadow-offset-y = 1
shadow-opacity = 0.3
compton --config ~/.config/compton.conf &~/.config/i3/config 加入 exec --no-startup-id compton --config ~/.config/compton.conf)。pgrep -x comptonpaplay /usr/share/sounds/alsa/Front_Center.wav)。三、常见误区与修正
default.pa 添加 load-module module-native-protocol-tcp 等就能“让 Compton 用音频”
After=graphical-session.target,避免与登录会话生命周期不匹配。四、迁移与优化建议
compton.conf(个别选项名可能略有差异)。vsync(如 vsync = true)。