在 Ubuntu 上“关闭 Compton”通常指停止或禁用这个 compositor(窗口合成器)。不同情况操作如下:
如果你是用命令行启动的 Compton:
pkill compton
或(有些系统叫 picom):
pkill picom
查看是否有服务:
systemctl --user status compton
# 或
systemctl --user status picom
停止并禁用:
systemctl --user stop compton
systemctl --user disable compton
(如果是 picom,把 compton 换成 picom)
检查 ~/.config/autostart/:
ls ~/.config/autostart/ | grep -i compton
删除或移走对应文件:
rm ~/.config/autostart/compton.desktop
编辑配置文件:
~/.config/i3/config~/.config/openbox/autostart找到类似:
exec compton &
或
exec --no-startup-id compton
删掉这一行,然后重启会话。
如果你告诉我你用的是 Ubuntu 哪个版本 + 桌面环境(GNOME/KDE/i3/Openbox 等),我可以给你更精确的命令。