要在Ubuntu中使用Compton支持多显示器,可按以下步骤操作:
sudo apt-get update
,然后sudo apt-get install compton
。.config/compton.conf
文件,可使用nano
命令,如nano ~/.config/compton.conf
。backend
设置为"glx"
,还可通过xrandr
命令配置显示器布局,如xrandr --output HDMI-1 --auto --right-of eDP-1
等,也可在配置文件中直接指定显示器参数,如screen0 { output = "HDMI-1"; position = "left"; }
等。compton -c ~/.config/compton.conf
。/etc/systemd/system/compton.service
,添加相应内容,然后启用并启动服务。