Compton配置阴影效果需编辑配置文件(通常位于~/.config/compton.conf),以下是关键参数及调整方法:
shadow = true。shadow-color参数指定,如shadow-color = "#00000080"(带透明度)。shadow-opacity控制(0.0-1.0),如shadow-opacity = 0.5。shadow-radius(像素值),如shadow-radius = 5。shadow-offset-x和shadow-offset-y调整位置,如shadow-offset-x = 2。shadow-exclude指定窗口类名或ID,如shadow-exclude = ["class_g = 'Firefox'"]。修改后需重启Compton生效,命令为:
killall compton && compton -c ~/.config/compton.conf 注:部分参数可能因版本略有差异,建议参考官方文档。