diff options
Diffstat (limited to '')
-rwxr-xr-x | .i3/scripts/workspaces.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.i3/scripts/workspaces.py b/.i3/scripts/workspaces.py index 137d5fc..67186a2 100755 --- a/.i3/scripts/workspaces.py +++ b/.i3/scripts/workspaces.py @@ -57,16 +57,16 @@ def to_ws(cmd, prompt, args): ws = sorted(w["name"] for w in i3.get_workspaces()) try: - sel = (sh.dmenu("-b", _in = "\n".join(ws), p=prompt).strip() or None) + sel = sh.dmenu(b = True, p = prompt, _in = "\n".join(ws)).strip() except sh.ErrorReturnCode: sel = None - if sel is not None: + if sel: cmd(sel) def rename(args): cur_ws = i3.filter(i3.get_workspaces(), focused = True)[0] - input = partial(sh.i3_input, P = "Rename workspace: ") + input = sh.i3_input.bake(P = "Rename workspace: ") if "--keep-num" in args and cur_ws["num"]: input(F = ('rename workspace to "%d: %%s"' % cur_ws["num"])) |