在 Linux 下“卸载 Compton 配置”通常分几种情况,下面按常见需求一步步说明,你可以对照自己的情况操作。
先确认是否在运行:
ps aux | grep compton
如果有进程,杀掉它:
pkill compton
(如果你用的是 picom,则对应是 pkill picom)
Compton 常见配置文件位置:
~/.config/compton.conf
~/.compton.conf
/etc/compton.conf
删除它们:
rm -f ~/.config/compton.conf
rm -f ~/.compton.conf
sudo rm -f /etc/compton.conf
查看是否有服务:
systemctl --user list-unit-files | grep compton
如果有:
systemctl --user disable --now compton
(或 picom)
i3:检查 ~/.config/i3/config
nano ~/.config/i3/config
删除类似:
exec --no-startup-id compton
Openbox:
~/.config/openbox/autostart
删除 compton &
XFCE / KDE: 打开“会话与启动” → 删除 Compton 条目
如果你是想连程序一起删:
sudo apt remove --purge compton
sudo pacman -Rns compton
sudo dnf remove compton
⚠️ 注意:现在很多发行版已用 picom 替代 compton:
sudo apt remove --purge picom
which compton
ps aux | grep compton
ls ~/.config/compton.conf
都没有结果,说明已卸载干净。
如果你愿意,可以告诉我:
我可以给你精确到命令级别的操作。