CentOS 系统中 Compton 配置步骤

一 环境准备与安装
二 创建配置文件
# 渲染后端:优先 glx(需驱动支持);xrender 为备选backend = "glx"# 同步与帧率vsync = "true"fps = 60# 阴影shadow = trueshadow-radius = 12shadow-offset-x = 0shadow-offset-y = 8shadow-exclude = ["name = 'Conky'","class_g = 'Polybar'","class_g = 'Trayer'"]# 透明度与忽略规则opacity-rule = ["90:class_g 'Firefox'","90:class_g 'Terminal'","100:class_g 'Xephyr'"]# 背景模糊(可选,性能开销较大)# bg_blur = true# screen_edge_blur = true# 其他稳定性项glx-no-stencil = trueglx-copy-from-front = false三 启动与自启动
[Unit]Description=Compton Window ComposerAfter=graphical-session.target[Service]Type=simpleExecStart=/usr/bin/compton -c /home/你的用户名/.config/compton.confRestart=on-failureEnvironment=DISPLAY=:0[Install]WantedBy=default.target四 多显示器与常见问题