From 47a0a3f433f820fc78d180884f6ca376fba97b73 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 12 Apr 2015 13:05:47 +0200 Subject: Tidy up everything :) --- tools/exec_to_workspace | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 tools/exec_to_workspace (limited to 'tools/exec_to_workspace') diff --git a/tools/exec_to_workspace b/tools/exec_to_workspace new file mode 100755 index 0000000..8bacd78 --- /dev/null +++ b/tools/exec_to_workspace @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# +# Wrapper to executute a shell command in the background followed by a change to a +# workspace +# +# $1 - workspace to change to +# $2+ - shell command + +wg=$1; shift +cmd="$@" +bspc desktop -f $wg & +eval $cmd & -- cgit v1.2.3-54-g00ecf