aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2020-03-20 21:37:58 +0900
committerJason Nader <jason.nader@protonmail.com>2020-03-20 21:37:58 +0900
commita8cfe1528137c2a8b3c3463578eb235e6794b70f (patch)
tree8f9f440602e2c1d04a1177501a78ecf8be59c7a3
parentc938782b0fb15595cafc13ba47e23cb0a5a6943c (diff)
downloadautotiling-a8cfe1528137c2a8b3c3463578eb235e6794b70f.tar.gz
`i3` doesn't need to be global
-rwxr-xr-xautotiling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotiling.py b/autotiling.py
index 9cd6aa5..6aa9652 100755
--- a/autotiling.py
+++ b/autotiling.py
@@ -18,7 +18,6 @@ Dependencies: python-i3ipc>=2.0.1 (i3ipc-python)
from i3ipc import Connection, Event
-i3 = Connection()
def switch_splitting(i3, e):
@@ -48,6 +47,7 @@ def switch_splitting(i3, e):
def main():
i3.on(Event.WINDOW_FOCUS, switch_splitting)
+ i3 = Connection()
i3.main()