如果您从没有玩过Linux系统,而是看过有关它的YouTube视频,那么您很有可能看到有人炫耀其精美的桌面效果,尤其是“摇晃的窗户"效果。由于窗口管理器软件可以控制包含您运行的各种程序的窗口,因此可能会产生这些效果。但是,像大多数其他Linux应用程序一样,可以完成任务的不止一个,提供完整软件包的前两个是Compiz和KWin。尽管这两种解决方案都有各自的特定领域,但我们仍然可以客观地进行比较,以查看哪种解决方案更具可定制性和功能性。
Compiz
Compiz是最受欢迎的窗口管理器,谢谢Gnome 2和Unity的流行,它们使用自己的名为Mutter的窗口管理器来控制其桌面效果; Gnome Shell和Compiz是不可能的。在基于Qt的桌面环境上使用Compiz并非并非不可能,但这确实需要一些工作。
Compiz is easily configurable via the CompizConfig Settings Manager application, where you can enable or disable various plugins as well as configure their different settings. Some popular plugins include Unity (when using Ubuntu), Wobbly Windows, and 3D Cube. Taking some time to go through the CompizConfig Settings Manager is pretty important if you want to benefit from a highly customized and visually appealing desktop experience. Of course, be sure to notice that some plugins can actually make a difference when it comes to productivity, while there are others which just add visual bells and whistles.
我们也有文章对Compiz进行了更详细的介绍。
另一方面,KWin
KWin是KDE桌面环境的默认窗口管理器。除此之外,它很少在其他桌面环境中找到,但是与Compiz相似,它可以用作任何工作量很大的系统的窗口管理器。因为KWin是KDE的默认窗口管理器,所以它提供了完美的系统集成,并且与KDE的外观完全一致。实际上,KWin管理KDE系统上的屏幕截图功能,而Gnome屏幕截图则由单独的实用程序处理。这就是为什么KDE屏幕截图在窗口周围具有不错的(可选)发光效果的原因。
Similar to Compiz, you can choose from a list of plugins that you can enable and disable, as well as configure even more if there are any further available settings. There are plenty of built-in effects to choose from, and there’s a “Get New Effect” button which allows you to pull other effects from the Internet (although at the time of writing there’s only three that are available). In any case, the included effects should be more than enough for the large majority of people.
除了“常规"标签外,您还可以打开KWin以及桌面切换效果和动画速度的选项,在Compiz下没有等效项的Advanced选项卡。这些设置可以更好地控制KWin渲染效果的方式(并且还可以通过降低质量来提高性能),例如在OpenGL和XRender之间选择合成类型,在Native和Raster之间选择Qt图形系统。此外,您可以选择缩略图设置,是否应使用OpenGL 2着色器以及是否应启用垂直同步。同样,所有这些设置都会影响系统的性能以及已安装的插件数量。
安装和结论
应该已经为您的发行版安装了相应的窗口管理器。和台式机环境,但仍可以通过在相应的软件包管理器中搜索那些名称来搜索软件包来安装compiz或kwin。在非默认桌面环境(例如在非KDE桌面环境中的KWin)中集成窗口管理器首先需要进行一些研究。
So which window manager is better? While both Compiz and KWin are excellent choices that are practically even, I have to declare KWin the winner. In the spirit of KDE’s level of customization, KWin can simply be configured to behave exactly the way you want it to be. Additionally, KWin is still being actively developed by the KDE team (with partial support for Wayland already being included), but Compiz has become a quieter project that is mainly receiving patches from Ubuntu/Canonical as Unity is built on top of it. Finally, KWin has become quite a bit quicker compared to years past, which was practically the only downside to using KWin.
标签: