使用Compton提升Debian显示效果可按以下步骤操作:
安装Compton
sudo apt update && sudo apt install compton
配置显示效果
~/.config/compton.conf
,常用参数:
backend = "glx"
,提升性能。shadow = true
,shadow-opacity = 0.7
,shadow-radius = 3
。opacity = 0.9
,或针对特定窗口设置规则。blur = true
,blur-radius = 5
。vsync = true
,减少画面撕裂。backend = "glx"
shadow = true
shadow-opacity = 0.7
shadow-radius = 3
opacity = 0.9
blur = true
blur-radius = 5
vsync = true
启动并验证
sudo systemctl restart compton
打开应用窗口,检查阴影、模糊等效果是否生效。
优化性能(可选)
opacity = false
。cpulimit
限制CPU使用率,例如 cpulimit -l 50 -p $(pgrep compton)
。注意:部分配置需根据显卡驱动调整,NVIDIA用户需确保驱动支持合成器。修改配置后需重启Compton生效。