Drop shadows on the Raspberry Pi desktop

From Spivey's Corner
Jump to: navigation, search

The provided setup scripts seem rather broken. Here's what I did:

  • Use raspi-config to enable at least Fake KMS.
  • Put the following in /etc/xdg/autostart/xcompmgr.desktop.
[Desktop Entry]
Type=Application
Name=xcompmgr
Comment=Start xcompmgr compositor
NoDisplay=true
Exec=/usr/local/lib/raspi-config/cmstart.sh
  • Put the following in /usr/local/lib/raspi-config/cmstart.sh and make executable.
#!/bin/sh
dev=/proc/device-tree/soc
if grep -q okay $dev/v3d@7ec00000/status 2> /dev/null \
	|| grep -q okay $dev/firmwarekms@7e600000/status 2> /dev/null ; then
    xcompmgr -Cc -t1 -l1 -r3 -o0.25
fi

I've no idea how to interpret the arguments to xcompmgr, but these ones seem to give a pleasant light shadow offset to the South-East.

Modifications for RasPi4 to follow.