在Debian上配置Compton以支持多显示器,可参考以下步骤:
sudo apt install compton -y
安装。~/.config/compton.conf
,可手动创建或修改默认文件。添加多屏配置选项,如screen0
和screen1
,分别设置不同显示器的output
、position
等参数。compton -c ~/.config/compton.conf
启动。/etc/systemd/system/compton.service
文件,添加相关内容,然后使用sudo systemctl enable compton.service
和sudo systemctl start compton.service
启用并启动服务。另外,还可使用xrandr
命令配置显示器分辨率和位置等,Compton会自动检测显示器,也可通过其配置文件中的选项进一步优化多屏显示效果。