Poslal: Peťoš
« kdy: Prosinec 30, 2013, 10:53:08 »Napsal jsem to trochu... lepe a radostneji
Tohle by uz mohlo fungovat
Kód: [Vybrat]
#!/bin/bash
function waitfnc() {
eval $(xdotool getmouselocation --shell 2> /dev/null)
MOUSEPOSITION="$X$Y"
OLDMOUSEPOSITION=$MOUSEPOSITION
while [ "$MOUSEPOSITION" = "$OLDMOUSEPOSITION" ]; do
sleep 1
OLDMOUSEPOSITION="$MOUSEPOSITION"
eval $(xdotool getmouselocation --shell 2> /dev/null )
MOUSEPOSITION="$X$Y"
done
return
}
chromium-browser ~/Plocha/handclock.swf -kiosk &
LASTPID=$!
waitfnc
kill -9 $LASTPID
return 0
Tohle by uz mohlo fungovat