是的,Debian Compton 支持多屏显示。要在 Debian 上配置 Compton 以支持多屏显示,请按照以下步骤操作:
安装 Compton:
在 Debian 系统上,您可以使用以下命令来安装 Compton:
sudo apt-get update
sudo apt-get install compton
创建或编辑 Compton 配置文件:
Compton 的默认配置文件通常位于 /.config/compton.conf
。如果该文件不存在,您可以使用以下命令创建一个:
touch ~/.config/compton.conf
使用文本编辑器(如 nano 或 vim)打开配置文件:
nano ~/.config/compton.conf
配置多显示器:
在 .compton.conf
文件中,您可以指定多个显示器的配置。以下是一个基本的配置示例,它启用了桌面合成,并设置了几个常见的选项:
backend "glx";
glx-no-stencil false;
glx-copy-from-front true;
glx-shape true;
glx-fbconfig false;
glx-hardware true;
glx-damage true;
damage true;
opacity-rule [
"class_g \"Desktop\" A",
"class_g \"Gnome-terminal\" A",
"class_g \"Firefox\" A"
];
shadow-exclude [
"class_g \"Desktop\"",
"class_g \"Gnome-terminal\"",
"class_g \"Firefox\""
];
如果您有多个显示器,您可以添加 xrandr
命令的输出到配置文件中,以便 Compton 知道如何处理它们。例如:
xrandr-output "HDMI-1" "eDP-1";
这里的 HDMI-1 和 eDP-1 是您显示器的名称,您可以运行 xrandr
命令来查看您的显示器名称。
运行 Compton:
配置文件准备好后,您可以通过命令行运行 Compton:
compton -c ~/.config/compton.conf
如果您想要让 Compton 在启动时自动运行,您可以将它添加到您的窗口管理器的启动脚本中。
更多关于 Compton 配置的信息,您可以查看它的官方文档或 GitHub 仓库。