From fe0bff7e67f42bcc863ec797d297ba5bfe2ee7bd Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 8 Feb 2014 15:25:41 +0800 Subject: made output an option --- scripts/x-launcher | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/x-launcher b/scripts/x-launcher index 55fd907..1602c8d 100755 --- a/scripts/x-launcher +++ b/scripts/x-launcher @@ -12,6 +12,7 @@ run=$( echo run | $dmenu ) [[ "$run" == "" ]] && exit 0 $run 2>&1 > $tmp -#[[ $(cat $tmp) == "" ]] && exit 0 -#xmessage -file $tmp 2>/dev/null& -#xdotool search --sync --onlyvisible --maxdepth 1 xmessage mousemove --window %1 10 10 +[[ "$1" == "" ]] && exit 0; +[[ $(cat $tmp) == "" ]] && exit 0 +xmessage -file $tmp 2>/dev/null& +xdotool search --sync --onlyvisible --maxdepth 1 xmessage mousemove --window %1 10 10 -- cgit v1.2.3