Changing the cursor image in X?

Changing the cursor image in X?

Post by Nicholas Jame » Mon, 01 Mar 1999 04:00:00


Ok, I know this has got to be about the most innane and frivolous question that
could be asked about X Windows, but I've looked through all sorts of
documentation, and I can't seem to find the answer by other means.

Where are the mouse cursor images (e.g. the arrow, the wristwatch, etc.) in
XFree86?  Are they XPM files?  Are they hard-coded into the X server?  I'd like
to change these images, but I haven't the foggiest idea where to find them.

        ...Thanks in advance!

 
 
 

Changing the cursor image in X?

Post by Roland Latou » Tue, 02 Mar 1999 04:00:00



> Where are the mouse cursor images (e.g. the arrow, the wristwatch, etc.) in
> XFree86?  Are they XPM files?  Are they hard-coded into the X server?  I'd
> like to change these images, but I haven't the foggiest idea where to find
> them.

These are the Standard Cursors that you get via 'xsetroot -cursor_name'.
They are pictured in O'Reilly's X Window System Users' Guide, Appendix D
in my copy. You can't change them because they are hard-coded and
Standard.

If you want some other cursor, create it (and a mask file) using
'bitmap'
and load it with 'xsetroot -cursor cursorfile maskfile'. If you make a
big cursor and your video board has cursor hardware, you may have
problems
unless you use 'option sw_cursor' in your XF86Config file. This is
because
cursor hardware on video boards is usually restricted to MS-size
cursors.
X has no such restriction. I have a 171x68 'shark' cursor, for instance.

--
 Retired Tech Support Engineer       http://home.cdsnet.net/~rolandl
   Young at Heart. Slightly Older in Other Places.