Default Movement Actions

Is there any way to be able to use the functions of moving the phone. I donīt know if itīs clear the way I wrote it, Iīll try to explain.

For example, I saw in Moto X, with the screen turned off if you shake your mobile twice to your right, the camera app turns on.
I come from Samsung Galaxy Advance and I had some of these options also.

Iīd like to be able to turn my screen on without pressing the button.

Thanks indeed