在 Ubuntu 上禁用 Compton(通常作为窗口合成器使用,常见于 i3 / Openbox 等环境),可以按下面几种情况处理:
systemctl --user stop compton
systemctl --user disable compton
如果你是用 root 或系统级服务:
sudo systemctl stop compton
sudo systemctl disable compton
.xinitrc 或 桌面环境自动启动的~/.xinitrc打开:
nano ~/.xinitrc
删除或注释掉类似这一行:
compton &
# 或
compton -b &
保存后退出。
编辑 i3 配置文件:
nano ~/.config/i3/config
找到:
exec compton
或
exec --no-startup-id compton
注释掉或删除这一行。
打开:
xdg-autostart
或:
ls ~/.config/autostart/
删除 compton.desktop:
rm ~/.config/autostart/compton.desktop
pkill compton
很多新系统里 compton 已被 picom 取代:
pkill picom
systemctl --user disable picom
ps aux | grep -E "compton|picom"
如果你告诉我:
我可以给你更精确的禁用方式。