Change e2wm:message to a function