locate X mouse pointer?

killermoehre killermoehre at gmx.net
Fri Sep 30 10:18:28 CEST 2016


Am 29.09.2016 um 18:52 schrieb Ulli Horlacher:
> In Xfce 4.12 there is still no function to show the position of the X
> mouse pointer, like in other desktop environments.
> 
> I have several full screen applications where it is hard to find the mouse
> pointer, especially on a notebook in the sun :-}
> 
> So far, my workaround is to bind
> 
> xmessage -nearmouse -timeout 3 -buttons '' X
> 
> to a key.
> 
> Any better ideas?
> 

How about

#!/bin/bash
for i in {1..11}; do
    xfconf-query -c xsettings -p /Gtk/CursorThemeSize -s $(((i % 2) * 16
+ ((i + 1) % 2) * 48))
    xdotool mousemove_relative -p $((i * 36)) 5
    sleep 0.1
done

Regards


More information about the Xfce mailing list