aboutsummaryrefslogtreecommitdiff
path: root/tools/exec_to_workspace
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-04-12 13:05:47 +0200
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-04-12 13:05:47 +0200
commit47a0a3f433f820fc78d180884f6ca376fba97b73 (patch)
tree587b80062ebdb947d26ca7a70e32b38b7d67ca45 /tools/exec_to_workspace
parent269e617fea39658233db38ad503030c4fe040e80 (diff)
downloaddotfiles-47a0a3f433f820fc78d180884f6ca376fba97b73.tar.gz
dotfiles-47a0a3f433f820fc78d180884f6ca376fba97b73.tar.bz2
dotfiles-47a0a3f433f820fc78d180884f6ca376fba97b73.zip
Tidy up everything :)
Diffstat (limited to 'tools/exec_to_workspace')
-rwxr-xr-xtools/exec_to_workspace12
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 &