在Linux系统中,Compton(或其分支如picom
)的配置文件通常位于以下位置之一,具体取决于您的发行版和安装方式:
传统路径(旧版本或手动安装):
~/.config/compton.conf
或
~/.compton.conf
Picom(Compton分支):
~/.config/picom.conf
某些发行版可能将默认配置放在系统目录中(需root权限修改):
/etc/xdg/compton.conf
/etc/xdg/picom.conf
如果配置文件不存在,可以通过以下命令生成一个默认配置模板:
picom --example-config > ~/.config/picom.conf
或(Compton旧版):
compton --example-config > ~/.config/compton.conf
启动时通过参数指定配置文件路径:
picom --config ~/.config/my_picom.conf
picom
,配置文件在 ~/.config/picom/picom.conf
。compton.conf
,新版迁移到picom.conf
。检查Compton/picom是否加载了您的配置:
picom --diagnostics
或查看日志:
tail -f ~/.cache/picom.log
pkill picom && picom -b
。如有其他问题,请提供您的发行版和Compton/picom版本信息!