summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick <phaller@localhost.localdomain>2014-02-08 15:25:41 +0800
committerPatrick <phaller@localhost.localdomain>2014-02-08 15:25:41 +0800
commitfe0bff7e67f42bcc863ec797d297ba5bfe2ee7bd (patch)
treea8fbeb91d4000b497c0afd81bbd47ccd21a42ea2
parent5b5a632c8afe9514ee8c93671e5d5b50f0217608 (diff)
made output an option
-rwxr-xr-xscripts/x-launcher7
1 files changed, 4 insertions, 3 deletions
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