cursor disable in X11

Jump to navigationJump to search

When working with touch-screen interfaces or embedded systems you often don't want or need the mouse cursor. Most of the information I found about this specific topic described people either trying to use `xsetroot` or loading a cursor theme with all the cursors set to transparent. The following is, I believe, the correct solution.

Simply pass the nocursor option to the X server when you start it. There are a million ways to start X-Windows. I will list four variations. When using `startx` or `xinitrc` you can put these options in .xinitrc.

Xorg -nocursor
X -nocursor
xinit -- -nocursor
startx -- -nocursor