Change mouse cursor theme in Ubuntu

 Posted by:   Posted on:   Updated on:  2017-12-25T20:45:48Z

How to change default mouse cursor theme on Ubuntu Linux from terminal and dconf-editor. For the times when other tools didn't work.

There are a few applications that should allow changing default mouse cursor in Ubuntu. Unity Tweak Tool, GNOME Tweak Tool, Dconf Editor fail to change the mouse cursor or do it in such a way that it uses mixed themes.

In order to have a consistent cursor theme you must select it from one of these apps and also run a command in Terminal. First, the command. This is the most important and you may not even need to change the cursor theme from those apps too.
sudo update-alternatives --config x-cursor-theme
Change mouse cursor theme in Ubuntu



Here is my example output:

update-alternatives x-cursor-theme
Cursor theme options
Now I will use Dconf Editor which can be installed by running sudo apt-get install dconf-editor in Terminal. I would however recommend Unity Tweak Tool because you choose themes from a list instead of writing theme name.

dconf-editor screenshot
Dconf Editor - changing cursor theme
You must navigate to org.gnome.desktop.interface and type the a correct cursor theme name. Where to get that? Well, look in the update-alternatives output. Those folders that hold a cursor.theme file are valid cursor theme names. I underlined in red in my example (Adwaita, DMZ-Black, DMZ-White). Also .theme file names are valid names unless the file is named cursor (in my example core, handhelds, redglass and whiteglass are valid names). Installing other themes should populate that list.

Now, all you have to do is log off and on and you should see your new cursor. Tested on Ubuntu 15.04 and 15.10.

Source & more information: Ubuntu Forums, How do I change mouse cursors on Ubuntu 14.04? answers by grumblebum2. Distributed under CC-BY-SA 4.0.

4 comments :

  1. how to save changes after selection. please advice.

    ReplyDelete
  2. to anyone reading it in the future please restart to save changes (log out and in won't work, you have to restart)

    ReplyDelete

Please read the comments policy before publishing your comment.