I am looking for a command to return the current window manager. The reason I am looking at writing a simple script like thing that easily switches between compiz and metacity for running games.
P.S. not sure if "window manager" is the right reference. want to write something like
if "window manager = compiz
Hope that makes sense