Commit dfebc296 authored by Maxime Bombar's avatar Maxime Bombar

Fix new workspace script

parent 1c4ebd63
......@@ -12,7 +12,7 @@ def main():
all_numbers = sorted(list(map(lambda w: w.num, workspaces)))
new = all_numbers[0]
i = 0
while new == all_numbers[i]:
while i < len(all_numbers) and new == all_numbers[i]:
new += 1
i += 1
i3.command(f"workspace {new}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment