Xubuntu mouse cursor resets size on startup

I am running xubuntu 16.04.

I have changed my mouse them size to DMZ(White) size 31.

Whenever I restart my system, my mouse cursor resets to the smallest size of 28 (visually).

But when I go to Mouse settings, the setting is still 31. If I toggle the size to 32 and back to 31, the mouse cursor size correctly sets back to 31 (visually).

In addition, the mouse cursor will actually be the correct size on boot up in SOME applications, but not in the desktop.

So my question is two fold.

How can I fix this problem?

Second, if I can not fix it, could I make a start up script that will set the mouse size to 31?

2 Answers

Go to /usr/share/icons/default open icon.theme and make sure it contains:

Inherits= Adwaita

close&save

Open a terminal. Using your favourite editor, edit/create ~/.Xdefaults. Add the following text:

Xcursor.theme: Adwaita
Xcursor.size: 32

Save and close the file. Now run:

mkdir ~/.icons 

#if one already exists backup&delete it then recreate

ln -s /usr/share/icons/Adwaita ~/.icons/default

Now reboot.

Then go to the xfce4 mouse&touchpad settings, change to any of the preinstalled cursor themes and your preferred cursor size, reboot to check if it works as it should.

Note: I only tested the solution with the xubuntu&debian preinstalled cursor themes.

3

Actually just creating Xcursor.size: 45 in ~/.Xdefaults and a restart did it for me.

I used nano as an Editor so the command is:nano ~/.XdefaultsI added the line all the way to the top.

To write the update back to the file use Ctrl-O and Ctrl-X to end the editor.

Reboot your system.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like