温馨提示×

如何在ubuntu启用compton

小樊
48
2025-09-12 14:45:05
栏目: 智能运维

在Ubuntu启用Compton可参考以下方法:

  • 使用命令行
    1. 安装Compton:sudo apt updatesudo apt install compton
    2. 手动启动:compton --config ~/.config/compton.conf &(若无配置文件,可先创建,常用配置选项可参考相关文档)。
    3. 设置开机自启:创建/etc/systemd/system/compton.service文件,添加内容[Unit] Description=Compton Compositor After=graphical.target [Service] ExecStart=/usr/bin/compton --config ~/.config/compton.conf Restart=always User=nobody Group=nogroup [Install] WantedBy=graphical.target,然后执行sudo systemctl daemon-reloadsudo systemctl enable comptonsudo systemctl start compton
  • 通过系统设置(部分系统可能不支持):打开系统设置,进入显示设置,找到“窗口合成”选项勾选启用(若有此选项),但此方法可能无法自定义配置。

0