def rule(event):
    if all(
        [
            "xterm" in event.deep_get("Image", default=""),
            "-display" in event.deep_get("CommandLine", default=""),
            event.deep_get("CommandLine", default="").endswith(":1"),
        ]
    ):
        return True
    return False
