Not that simple, it could also be a rotational shake, twisting the wrist. I think a way to detect is to monitor the sign of the sensor acceleration values ( positional and rotational ),
keep a history over the duration you want to monitor, count for each component the number of time they change sign, and trigger a shake event if the count is above a threshold.
The biggest issue is how to detect the shake quickly enough, without false positive and not too slow to not create latency in applying the shake to whatever it has to impact in the VR world.