在Debian中自定义Compton配置,可参考以下方法:
~/.config/compton.conf
,若不存在则手动创建。使用文本编辑器(如nano)打开文件,可设置如background-opacity
(背景透明度,0.0-1.0之间)、shadow-exclude
(阴影排除区域)、blur-radius
(模糊半径)等参数。修改后保存文件,通过pkill compton
和compton -c ~/.config/compton.conf &
重启Compton使配置生效。compton --background "#000000" --shadow-exclude "class_g = 'Firefox'"
等。/etc/systemd/system/compton.service
文件,添加配置内容,如ExecStart=/usr/bin/compton -c /home/your-username/.config/compton.conf
,然后执行sudo systemctl daemon-reload
、sudo systemctl enable compton
和sudo systemctl start compton
来设置开机自启并启动服务。