summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-06-18 00:36:03 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-06-18 00:36:04 +0200
commit945f0315513d8b6cdab65a08a033f66c697a4b4e (patch)
treeecc775b417ffb9544b0b6974e015b509cda06fac
parent0cf9d15723ab29d1b99e35a570de8bba297f9a6a (diff)
downloaddotfiles-945f0315513d8b6cdab65a08a033f66c697a4b4e.tar.gz
dotfiles-945f0315513d8b6cdab65a08a033f66c697a4b4e.tar.bz2
dotfiles-945f0315513d8b6cdab65a08a033f66c697a4b4e.zip
i3: workspaces.py -- small cosmetic changes
Diffstat (limited to '')
-rwxr-xr-x.i3/scripts/workspaces.py6
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"]))