[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED] X coordinates displayed interactively.



    From: mick crane <mick.crane@gmail.com>
    Date: Sun, 19 Jun 2022 18:13:08 +0100
> https://stackoverflow.com/questions/21850145/monitor-mouse-coordinates-in-real-time-in-linux

    From: Andreas Rönnquist <mailinglists@gusnan.se>
    Date: Sun, 19 Jun 2022 18:38:50 +0200
> https://askubuntu.com/questions/346913/show-realtime-mouse-cursor-coordinates-cursor-mod-overlay-also-copy-to-c

    From: Vincent Lefevre <vincent@vinc17.net>
    Date: Tue, 21 Jun 2022 17:59:10 +0200
> I've added my own, complete solution:
> 
>   xterm -geometry 9x1+0+0 +sb -sl 0 -T 'Mouse location' -e '
>     set -e; tput civis; stty quit "^[";
>     while true; do
>       eval $(xdotool getmouselocation --shell) && printf "%4d %4d\r" $X $Y;
>       sleep .05;
>     done'

Thanks Mick, Andreas, Vincent.

Here 
  watch -ptn 0 "xdotool getmouselocation" 
suffices.

Thx,                            ... P.L.




-- 
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
   48.7693 N 123.3053 W


Reply to: