Linux下使用 Compton 提升显示效果
一 安装与启动
二 核心配置与示例
backend = "glx"
vsync = true
shadow = true
fade = true
opacity = 0.95
background-opacity = 1.0
[shadow]
shadow-radius = 12
shadow-offset-x = 1
shadow-offset-y = 1
shadow-opacity = 0.25
[blur]
method = "gaussian"
size = 8
deviation = 3.0
三 性能优化与常见问题
四 进阶与替代方案
[Unit]
Description=Compton Window Composer
After=xorg.service
[Service]
ExecStart=/usr/bin/compton --config /etc/compton.conf
Restart=on-failure
[Install]
WantedBy=multi-user.target
启用:sudo systemctl daemon-reload && sudo systemctl enable --now compton