安装Compton:
sudo apt-get install comptonsudo pacman -S compton创建/编辑配置文件:
配置文件路径为~/.config/compton.conf,若不存在则新建,用文本编辑器(如nano)打开:
nano ~/.config/compton.conf
启用动画效果:
在配置文件中添加或修改以下选项:
fade = trueduration = 300(单位:毫秒,默认值可调整)effect = fade(淡入淡出)、effect = push(推挤效果)glx-no-stencil = true、ignore-glx-glitz = true重启Compton:
保存配置后,重启Compton以应用更改:
compton -c ~/.config/compton.conf &
(部分系统需通过systemctl restart compton重启服务)
说明: