I have a useful tip for anyone who loses their mouse pointer on the desktop like I do.
I have a laptop with a high DPI screen and I use an external 4K monitor with it. The mouse pointer is very small and easy to lose. I needed a way to find it quickly.
Enter xdotool! This handy command-line tool lets you script mouse and keyboard events. I am using it to move the mouse pointer to a known position. The center of the screen, or close enough. It isn't the real center because it finds the center based on all the active displays.
So I went into the Gnome Settings, Keyboard, Shortcuts, Custom Shortcuts and made a new one called Center Mouse. I set the command to:
xdotool mousemove --polar 0 0
Then hit Apply. Then set the shortcut keys. It took me a while to figure this out, but I needed to HOLD DOWN the mouse button on the event, and then press the shortcut I wanted to use. Control-Shift-Z in this case.
After I did that I can press Control-Shift-Z and the mouse jumps to where I can easily find it.
No more looking all around trying to find it!