ubuntu

ubuntu compton如何启用双屏

小樊
42
2025-08-27 13:58:13
栏目: 智能运维

在Ubuntu上启用Compton双屏显示,可按以下步骤操作:

  1. 安装Compton:更新系统包列表后安装,命令为sudo apt updatesudo apt install compton
  2. 配置Compton:创建或编辑配置文件~/.config/compton.conf,设置backend "glx",并配置显示器参数,如screen0screen1outputposition,可通过xrandr --query查看显示器名称和位置。
  3. 启动Compton:手动启动命令为compton -c ~/.config/compton.conf
  4. 设置开机自启动:创建systemd服务文件/etc/systemd/system/compton.service,添加相关内容后,执行sudo systemctl enable comptonsudo systemctl start compton

0
看了该问题的人还看了