Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
OctopusET committed Jan 20, 2024
1 parent 8b0ff88 commit 91f5e2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layout-per-window.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import i3ipc


def on_window_focus(ipc: i3ipc.connection.Connection, event: i3ipc.events.WindowEvent):
global windows, prev_focused

Expand All @@ -19,7 +20,7 @@ def on_window_focus(ipc: i3ipc.connection.Connection, event: i3ipc.events.Window
if event.container.id in windows:
for (kdb_id, layout_index) in windows[event.container.id].items():
if layout_index != layouts[kdb_id]:
ipc.command(f"input \"{kdb_id}\" xkb_switch_layout {layout_index}")
ipc.command(f'input "{kdb_id}" xkb_switch_layout {layout_index}')
break

prev_focused = event.container.id
Expand Down

0 comments on commit 91f5e2e

Please sign in to comment.