aboutsummaryrefslogtreecommitdiff
path: root/Window_Manager/ratpoison/exec_to_workspace
blob: 8e72814938b66c6203dad2e6cec7f71945b99acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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="$@"
ratpoison -c "vselect $wg"
eval $cmd &
ratpoison -c 'barsend'
echo "D$wg" > /tmp/panel-fifo