We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Linux OS.: Technical questions

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
From: Thomas A Watson11/10/2018 11:58:42 AM
   of 477
where is the mouse on your screen?
In a terminal run mousepos using xdotool

need xdotool installed

sudo apt-get install xdotool


watson@xen2[109]xterm -geometry 50x12 -e mousepos

watson@xen2[105]which mousepos

watson@xen2[106]cat `which mousepos`
# /usr/local/bin/mousepos
set c=0
set last=99

while ( 1 )

xdotool getmouselocation --shell >ztmp
sleep .5s

# cat ztmp
set x=`cat ztmp|head -1`
set y=`cat ztmp|head -2|tail -1`
set screen=`cat ztmp|tail -2|head -1`
set window=`cat ztmp|tail -1`

echo $x $y" "$c" " $screen $window
echo ""

if ( $c < $last ) then
@ c++
set c=0
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext