diff options
Diffstat (limited to '')
-rwxr-xr-x | .i3/scripts/workspaces.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.i3/scripts/workspaces.py b/.i3/scripts/workspaces.py index 83cc7ef..5abfea3 100755 --- a/.i3/scripts/workspaces.py +++ b/.i3/scripts/workspaces.py @@ -35,6 +35,7 @@ def new_ws(cmd, args): except (IndexError, ValueError): exe = None + i = -1 # fallback if `nums` happens to be empty for i,n in enumerate(sorted(nums)): if i != n: cmd(str(i)) |