From 945f0315513d8b6cdab65a08a033f66c697a4b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 18 Jun 2013 00:36:03 +0200 Subject: i3: workspaces.py -- small cosmetic changes --- .i3/scripts/workspaces.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.i3') 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"])) -- cgit v1.2.3