Human Readable  

 

     
   
     

A Slackware Desktop Enhancement Guide

A White Mouse Pointer Without Themes

© Copyright Darrell Anderson.

Many people enjoy the default black mouse pointer that is packaged with the X graphical environment. And many don’t, instead preferring a white pointer. In KDE users can overcome this deficiency by installing various mouse themes. However, people using older hardware typically prefer to stay away from the overhead associated with installing and running themes, and possibly more important, themes simply are not important to some people. Thus, for those people a common question is how to install a white mouse pointer.

The solution is straightforward and requires no mouse themes. The default X mouse cursor is located at /usr/X11R6/lib/X11/fonts/misc/cursor.pcf.gz. From various places on the web (a file is included below), users can download white mouse pointers and replace that file. For KDE users there are two options. Replace the standard X cursor.pcf.gz file or copy the new file to one of two locations: /opt/kde/share/fonts/override or ~/.kde/share/fonts/override.

After installing the new file, be sure to regenerate the font caches. As root perform the following:

  1. From a console, change directory (cd) to the directory where the new cursor.pcf.gz mouse pointer file is located.
  2. mkfontdir
  3. mkfontscale
  4. fc-cache -fv
  5. Restart X or KDE

Users now have a white mouse pointer without fussing with themes. Bear in mind that when updating X or KDE that the cursor.pcf.gz file might get overwritten and need to be restored.

cursor.pcf.gz

Finis.

Table of Contents