power off with trigger....

is there way to set up a trigger/gesture to turn your Mac off?

Create a trigger which with action - Execute Shell Script / Task, and the "script" can be something like

shutdown -h now