Debian Compton 是一个用于 Linux 的简单、快速且可配置的 Compositor,它可以实现窗口动画效果
-
安装 Compton:
在终端中运行以下命令以安装 Compton:
sudo apt-get update sudo apt-get install compton
-
配置 Compton:
创建一个名为
~/.config/compton.conf
的配置文件(如果尚不存在),并添加以下内容以启用窗口动画效果:backend = "glx"; glx-no-stencil = false; glx-copy-from-front = true; shadow-exclude = ""; fade = true; unfocus = true; focus = true; expose = true; idle-detection = true; idle-detection-timeout = 0.5;
这里的
fade
、unfocus
和focus
选项已启用,以实现窗口最小化、最大化和切换时的动画效果。你可以根据需要调整其他选项。 -
启动 Compton:
在终端中运行以下命令以启动 Compton:
compton
如果你希望 Compton 在系统启动时自动运行,可以将其添加到你的启动应用程序列表中。
-
调整动画效果:
如果你对默认的动画效果不满意,可以在
~/.config/compton.conf
文件中进行调整。例如,你可以更改动画速度、延迟等。有关所有可用选项的详细信息,请参阅 Compton 的 GitHub 存储库中的 配置文件示例。
现在,你应该能看到窗口动画效果已经启用。如果你遇到任何问题,请确保你的显卡驱动程序已正确安装,并查看 Compton 的文档以获取更多帮助。