Autodetect i3, and use IPC to switch to window.