Skip to content

Commit

Permalink
make compatible with i3ipc>=2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fhchl authored and justbuchanan committed Dec 18, 2020
1 parent 5d303f7 commit 0505975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions new_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def find_next_ws_num_on_monitor(i3):
focused_monitor = focused_workspace(i3).output
logging.info('focused monitor: %s' % focused_monitor)

ws_on_monitor = filter(lambda ws: ws['output'] == focused_monitor,
ws_on_monitor = filter(lambda ws: ws.output == focused_monitor,
i3.get_workspaces())
nums = [ws['num'] for ws in ws_on_monitor]
nums = [ws.num for ws in ws_on_monitor]
maxnum = max(nums)
logging.info('max workspace on monitor: %s' % str(maxnum))

Expand Down

0 comments on commit 0505975

Please sign in to comment.