在Linux系统中,Compton(现多使用其分支picom
)的配置文件通常位于以下路径之一:
Compton (旧版)
~/.config/compton.conf
或 ~/.compton.conf
Picom (新版分支)
~/.config/picom.conf
或 /etc/xdg/picom.conf
# 使用文本编辑器(如nano/vim)编辑配置文件
nano ~/.config/picom.conf # 推荐优先检查此路径
# 或
nano ~/.config/compton.conf
bash
cp /etc/xdg/picom.conf.example ~/.config/picom.conf
bash
picom --example-config > ~/.config/picom.conf
bash
picom --config ~/.config/picom.conf
bash
picom --config ~/.config/picom.conf --debug
/etc/xdg/picom.conf
或 /etc/compton.conf
compton
前缀,而新版多为picom
。如果需要进一步调整配置参数,可以参考官方Wiki或社区文档。