I'm looking at /usr/share/icons/DMZ-White/cursors
, and there is:
$ tree -s /usr/share/icons/DMZ-White/
/usr/share/icons/DMZ-White/
├── [ 4096] cursors
│ ├── [ 14] 00008160000006810000408080010102 -> v_double_arrow
...
│ ├── [ 5] 9d800788f1b08800ae810202380a0822 -> hand2
│ ├── [ 8] arrow -> left_ptr
│ ├── [ 15776] bd_double_arrow
│ ├── [ 15776] bottom_left_corner
│ ├── [ 15776] bottom_right_corner
│ ├── [ 15776] bottom_side
...
... a bunch of files without extension, that GIMP cannot open.
Is there an editor where these files can be opened - or at least a converter to something like .png
? I can note that ImageMagick display
also failed to open these files.
The cursor files uses
X11 cursor
type of files:GIMP plugin
You need a plugin to edit cursors files with GIMP called "X11 Mouse Cursor (XMC) plug-in" which you can find here.
The X tool
You can also create your own PNG images and transform them to cursors files using "Xcursorgen" which can be found in the
x11-apps
package.Third party
Gursor Maker is a front end for xcursorgen.
References:
Xcursor Viewer can be used for preview cursor. It hasn't any editing features. Only viewing.
Pretty old thread, if somebody searching for this:
Gimp is now supports it natively. So just open and can export to xcm.
copied from OP edit:
Found also Gursor Maker - Cursor Editor for X11/GTK+; got the CVS code from SourceForge - it still uses
Numeric
(the old name ofnumpy
), so to run it, you'll have to do:... in xcurio.py, curxp.py, gimp.py, colorfunc.py - and comment the
#from xml.dom.ext.reader import Sax2
in lsproj.py. With that, I got it running 11.04:... but cannot get any files to open? So I thought I should grep for paths, nothing much came up - and when I looked into
cursordefs.py
, I simply had to paste this:Heh
:)
In any case, doesn't look like it will be much usable on newer Ubuntus, unfortunately...Just tested XMC plugin as well - on 11.04, has to be built from source (from the link in the accepted answer); the requirements on my system resolved to:
... after that, the configure/make procedure in the
INSTALL
file works. Note that this plugin is a bit "sneaky":... that is, you should use "All files" (as there are no extensions); cursor previews at first will not be rendered. Then open one cursor file; after it has been opened, then there is a preview in the File/Open dialog; but other than that, it works fine...
There is also xcur2png, which allows converting the image data of cursors to PNG and creates
.conf
files.Only an inofficial 64bit .deb build is available but luckily the source is non-problematic to compile, just make sure libxcursor is installed.
This answer was found at https://unix.stackexchange.com/questions/241364/
I looked for the GIMP plugin Braiam mentioned and it seems to have disappeared. But by reading up on the spec I was able to come up with a simple Makefile that will extract the first 24x24 pixel cursor from a typical file that has the first icon at an offset of 0x70:
It probably won't work for everybody. But it works on my Debian 10 netbook.