How do I set the size of the X mouse pointer in the Windows Subsystem for Linux
I am running Ubuntu 16.04 on the Windows Subsystem for Linux on Windows 10 (with the Creators update). I have an X server (VcXsrv) running in Windows and from bash I open an lxterminal on that X server. My laptop has a resolution of 3840x2160 pixels.
My problem is that the mouse pointer in the lxterminal window is so small I can not find it even if I move it, so I have to move it out of the terminal window and then carefully move it to the place I want it to be.
This setup is so unusual (yet!) that I haven't found anything by searching.
How can I make the mouse pointer bigger?
The following works, though might not be the best solution. Install package big-cursor
sudo apt-get install big-cursor
Then go to the directory you installed VcXsrv in, to the directory fonts/misc
(e.g C:\Program Files\VcXsrv\fonts\misc)
, rename the file cursor.pcf.gz
to cursor-small.pcf.gz
, and then copy, from the linux system,
/usr/share/fonts/X11/misc/big-cursor.pcf.gz
to cursor.pcf.gz
in the fonts/misc
directory on the Windows side (where VcXsrv resides)
I'm sure there is a more elegant way to do this, but on my machine it works.
Set cursor size with this variable:
export XCURSOR_SIZE=64
Run this command in linux terminal. Choose suitable size: 16, 32, 64. To persist this settings between terminal sessions, add this command in ~/.bashrc
.
I've tested this solution with VcXsrv
and X410
X-Servers.