diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
commit | 4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 (patch) | |
tree | d596ad6a67295d3f46e4ab189fd2b3539ea83c10 /ratpoison/exec_to_workspace | |
download | dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.gz dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.bz2 dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.zip |
First commit of dotfiles.
Diffstat (limited to 'ratpoison/exec_to_workspace')
-rwxr-xr-x | ratpoison/exec_to_workspace | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ratpoison/exec_to_workspace b/ratpoison/exec_to_workspace new file mode 100755 index 0000000..451bb07 --- /dev/null +++ b/ratpoison/exec_to_workspace @@ -0,0 +1,13 @@ +#!/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="$@" +eval $cmd & +rpws $wg + |