diff options
| author | Patrick <phaller@localhost.localdomain> | 2014-02-08 15:25:41 +0800 |
|---|---|---|
| committer | Patrick <phaller@localhost.localdomain> | 2014-02-08 15:25:41 +0800 |
| commit | fe0bff7e67f42bcc863ec797d297ba5bfe2ee7bd (patch) | |
| tree | a8fbeb91d4000b497c0afd81bbd47ccd21a42ea2 /scripts/x-launcher | |
| parent | 5b5a632c8afe9514ee8c93671e5d5b50f0217608 (diff) | |
made output an option
Diffstat (limited to 'scripts/x-launcher')
| -rwxr-xr-x | scripts/x-launcher | 7 |
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 |
