在Compton配置文件(通常位于~/.config/compton.conf
)中设置阴影效果,需添加以下参数:
shadow = true
。shadow-opacity
(0.0-1.0,如0.5
表示半透明)。shadow-radius
(数值越大越模糊,如5
或10
)。shadow-offset-x
和shadow-offset-y
(单位为像素,如2
表示向右下偏移2像素)。shadow-exclude
(通过窗口类名、名称等排除,如"class_g = 'Firefox'"
)。修改后需重启Compton生效,命令为:killall compton && compton -c ~/.config/compton.conf
。
参考来源: