Is there a way to set a left-handed mouse pointer in Ubuntu 13.04?
For those who don't know what left-handed mouse pointers are:
It does not seem there are many left-handed cursor themes. You have the following options:
You have to install comixcursors-lefthanded and gcursor (gnome cursor theme managing software). Although
gcursor doesn't seem to do install the theme for me it is useful to see what a cursor theme looks like.
The theme ComixCursors-LH-White-Small looks the most decent, so let's pick that one
First we need to add an extra line to the themes
index.themes file. All themes are located in
/usr/share/icons, and for the ComixCursors-LH-White-Small theme we need to do
sudo gedit /usr/share/icons/ComixCursors-LH-White-Small/index.theme
This file looks like this:
[Icon Theme] Name = Comix Cursor LH White Small Bold Comment = The left-handed Comix Cursors - White Small Bold Example = default
Now we need to add the following line at the bottom (of course if you pick another theme, you should write the name of the other theme)
Inherits = ComixCursors-LH-White-Small
Now save and close the file.
On Ubuntu the utility
update-alternatives manages the cursor themes, so we need to tell it about this new theme we want to use, execute
sudo update-alternatives --install /usr/share/icons/default/index.theme x-cursor-theme /usr/share/icons/ComixCursors-LH-White-Small/index.theme 91 sudo update-alternatives --set x-cursor-theme /usr/share/icons/ComixCursors-LH-White-Small/index.theme
Now if you log out and log in again, you should have your new cursors.
You can use
sudo update-alternatives --config x-cursor-theme
to change between the installed cursor themes.
The above approach works but the cursors are ugly, however you can also modify the default theme. The cursors that you use most are the normal pointer and the hand (which appears if you hover over a link):
The DMZ-White theme also provides a pointer that points to the right, and I made my own mirrored hand using gimp (see note at the end):
The pointer is
/usr/share/icons/DMZ-White/cursors/right_ptr, and mirrored hand is called
hand3 and I made it available on mediafire (if you follow the instructions below, you will download it automatically to the correct directory).
Now we need to replace these cursors. First go to the DMZ-White cursor directory
Then download the
sudo wget http://www.mediafire.com/download/v45c56ewol1k140/hand3
Now backup the original
sudo mv left_ptr left_ptr_orig sudo mv hand2 hand2_orig
Now let the new
hand2 point to the
sudo ln -s right_ptr left_ptr sudo ln -s hand3 hand2
Now if you log out and log in again, you should have your new (beautiful) cursors.
Note: Editing cursor files using gimp
You can edit cursor files (and make your own cursor theme :) ) using gimp which is a free alternative to Photoshop. If you want to save your file choose Export to and then pick X11 Mouse Cursor. This will save your file with the
.xmc extension, but you can simply remove the extension.
sudo apt-get install comixcursors-lefthanded gnome-tweak-tool gnome-tweak-tool
Appearance > Cursor Theme
To search for alternative cursor themes:
apt-cache search cursor | grep cursor | grep left