How to replace edge bindings of Compiz?

Hello,
In order to use Marco instead of Compiz as window manager, I wish to replace the function edge bindings of Compiz that I use every day. Without Compiz, how to simulate edge bindings action or replace it? Currently, I use right edge bindings to close the active window with right click and top edge bindings to open firefox with right click. Before I use Marco, I want to find an alternative solution to still use edge bindings: run script when mouse click on edge screen. Can you help me please?