diff options
Diffstat (limited to 'tools/exec_to_workspace')
-rwxr-xr-x | tools/exec_to_workspace | 12 |
1 files changed, 12 insertions, 0 deletions
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 & |