op_cpuspeed: show current clock
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_xfcemenu.sh
1 #!/bin/bash
2 POSMENU=`DISPLAY=:0.0 xwininfo -name xfce4-menu-plugin | egrep 'Absolute upper-left X|Absolute upper-left Y' | awk '{print $4}'`
3 Xold=`DISPLAY=:0.0 xdotool getmouselocation | awk  '{print $1}' | sed 's/^..//'`
4 Yold=`DISPLAY=:0.0 xdotool getmouselocation | awk  '{print $2}' | sed 's/^..//'`
5 Xnew=`echo $POSMENU|awk '{print $1}'`
6 Ynew=`echo $POSMENU|awk '{print $2}'`
7 DISPLAY=:0.0 xdotool mousemove $Xnew $Ynew
8 DISPLAY=:0.0 xdotool click 1
9 DISPLAY=:0.0 xdotool mousemove $Xold $Yold