def METHOD_NAME(self):
    from i3ipc import Connection, Event
    self.i3 = Connection()
    self._update(self.i3.get_tree().find_focused())
    self.i3.on(Event.WORKSPACE_FOCUS, self._on_workplace_focus)
    self.i3.on(Event.WINDOW_CLOSE, self._on_window_close)
    self.i3.on(Event.WINDOW_TITLE, self._on_window_title)
    self.i3.on(Event.WINDOW_FOCUS, self._on_window_focus)
    self.i3.on(Event.BINDING, self._on_binding)
    self.i3.main()