aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/exec_to_workspace
blob: d97efffa51bdf666c4d7c20fbe7cc59ce232cac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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