Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-csp authored Mar 11, 2024
1 parent 7499f90 commit fba47de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout-per-window.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def on_window(ipc: i3ipc.connection.Connection, event: i3ipc.events.WindowEvent)
print("Too many arguments", file=sys.stderr)
sys.exit(2)
else:
default_layout = None
default_layout: int = None

ipc = i3ipc.Connection()
focused = ipc.get_tree().find_focused()
if focused:
prev_focused = focused.id
else:
prev_focused = None
windows = {}
windows: dict = {}

ipc.on("window", on_window)
ipc.main()

0 comments on commit fba47de

Please sign in to comment.