diff options
author | Jason Nader <jason.nader@protonmail.com> | 2020-03-20 21:37:58 +0900 |
---|---|---|
committer | Jason Nader <jason.nader@protonmail.com> | 2020-03-20 21:37:58 +0900 |
commit | a8cfe1528137c2a8b3c3463578eb235e6794b70f (patch) | |
tree | 8f9f440602e2c1d04a1177501a78ecf8be59c7a3 | |
parent | c938782b0fb15595cafc13ba47e23cb0a5a6943c (diff) | |
download | autotiling-a8cfe1528137c2a8b3c3463578eb235e6794b70f.tar.gz |
`i3` doesn't need to be global
-rwxr-xr-x | autotiling.py | 2 |
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() |