From 9740f89ad3d868ed006e1d4e074592a37da2235e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 29 Aug 2013 10:59:26 +0200 Subject: Do not use coproc, but directly pipe to while-loop. --- .i3/scripts/start_pidgin.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.i3') diff --git a/.i3/scripts/start_pidgin.sh b/.i3/scripts/start_pidgin.sh index 5fbee02..6fb144b 100755 --- a/.i3/scripts/start_pidgin.sh +++ b/.i3/scripts/start_pidgin.sh @@ -11,9 +11,8 @@ pidgin & # wait for the DBus-Service to be available # we use '--profile' because it renders nicer output -coproc dbus-monitor --profile "interface=im.pidgin.purple.PurpleInterface" - -while read -p line; do +dbus-monitor --profile "interface=im.pidgin.purple.PurpleInterface" | +while read line; do [[ $line =~ 'UpdateIdle$' ]] && break # if the blist is automatically shown, we exit # else we would move the focus, which is bad -- cgit v1.2.3