Compton可通过配置文件实现桌面特效,步骤如下:
安装Compton
sudo apt-get install compton
sudo dnf install compton
创建/修改配置文件
配置文件路径通常为~/.config/compton.conf
,添加以下选项:
shadow = true
blur = true
或blur-method = "gaussian"
opacity-rule = ["90:class_g 'Firefox'"]
(设置特定窗口透明度)vsync = true
重启Compton生效
compton --config ~/.config/compton.conf
注意:部分选项需根据系统版本调整,可通过man compton
查看详细参数。