From fb8e4dff30d84d0c81d4b7762bacf5c57ea6e1e2 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 25 Feb 2018 12:09:44 +0100 Subject: Update configuration --- i3/scripts/i3/launch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 i3/scripts/i3/launch.sh (limited to 'i3/scripts') 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 -- cgit v1.2.3