diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2018-02-25 12:09:44 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2018-02-25 12:09:44 +0100 |
commit | fb8e4dff30d84d0c81d4b7762bacf5c57ea6e1e2 (patch) | |
tree | baaa4fcb47dc0806b4045f774d29c4705c00de38 /i3/scripts | |
parent | 68b91fae3b623d719ada6d5d15b5ced4871ec0b0 (diff) |
Update configuration
Diffstat (limited to 'i3/scripts')
-rwxr-xr-x | i3/scripts/i3/launch.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/i3/scripts/i3/launch.sh b/i3/scripts/i3/launch.sh new file mode 100755 index 0000000..ddfbee6 --- /dev/null +++ b/i3/scripts/i3/launch.sh @@ -0,0 +1,11 @@ +#!/bin/sh +workspace=$1 +shift +pgrep -U $(whoami) -af "$*" | grep -qv $(basename "$0") +ret=$? +if [ $ret = 1 ]; then + i3-msg "exec $*; workspace ${workspace}" +else + i3-msg "workspace ${workspace}" +fi +killall -USR1 i3status |