summaryrefslogtreecommitdiff
path: root/.i3/scripts/workspaces.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.i3/scripts/workspaces.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/.i3/scripts/workspaces.py b/.i3/scripts/workspaces.py
index 5abfea3..137d5fc 100755
--- a/.i3/scripts/workspaces.py
+++ b/.i3/scripts/workspaces.py
@@ -44,9 +44,12 @@ def new_ws(cmd, args):
cmd(str(i+1))
if exe:
- try:
- sh.Command(exe)()
- except sh.CommandNotFound:
+ # We use i3.exec_ here instead of sh.Command, as we do not want the
+ # exe to be a child of this script's process
+ # Also we get startup notification support for free :-)
+ if sh.which(exe): # i3 exec always yields 'success'
+ i3.exec_(exe)
+ else:
nag("Command '%s' not found!" % exe)
def to_ws(cmd, prompt, args):
Allow 'klass' in i3.py descriptionsRené Neumann1-0/+4 2013-06-04i3: rename workspaceRené Neumann1-0/+3 2013-06-03Some more greek chars / math product and sumRené 'Necoro' Neumann1-0/+6 2013-06-02Fix rules in i3-config. Somehow 'set' expands variables twice :-/René Neumann1-14/+11 2013-06-01Overhaul xlock.shRené 'Necoro' Neumann1-4/+8 2013-06-01Better workspace chooserRené 'Necoro' Neumann3-2/+581 2013-06-01FF/TB/Pidgin stuffRené 'Necoro' Neumann1-26/+45 2013-06-01More i3René 'Necoro' Neumann1-2/+11 2013-06-01FixesRené 'Necoro' Neumann2-2/+2