在Ubuntu上使用Compton处理多显示器设置,可参考以下步骤:
sudo apt update
和sudo apt install compton
进行安装。~/.config/compton.conf
,设置backend
为"glx"
,还可根据需要调整阴影、透明度等参数。若要指定显示器,可使用output
参数,如output = "HDMI-1 eDP-1"
。xrandr
命令配置显示器布局,如xrandr --output HDMI-1 --auto --right-of eDP-1
。compton -c ~/.config/compton.conf
命令启动。/etc/systemd/system/compton.service
文件,添加相关内容,然后使用sudo systemctl enable compton.service
和sudo systemctl start compton.service
启用并启动服务。