Linux Commands Examples

A great documentation place for Linux commands

xcursorgen

create an X cursor file from a collection of PNG images

Synopsis

xcursorgen [ -V ] [ --version ] [ -? ] [ --help ] [ -p dir ] [ --prefix dir ] [ config-file [ output-file ] ]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
mkdir ../cursors
xcursorgen left_ptr_watch.in ../cursors/left_ptr_watch
xcursorgen hand1.in ../cursors/hand1
xcursorgen hand1.in ../cursors/hand2
xcursorgen hand1.in ../cursors/hand2
xcursorgen left_ptr.in ../cursors/left_ptr
xcursorgen xterm.in ../cursors/xterm
xcursorgen crossed_circle.in ../cursors/crossed_circle
0
source
            
mkdir ../xcursors
xcursorgen left_ptr_watch.in ../xcursors/left_ptr_watch
#xcursorgen hand1.in ../xcursors/hand1
#xcursorgen hand1.in ../xcursors/hand1
xcursorgen hand2.in ../xcursors/hand2
xcursorgen left_ptr.in ../xcursors/left_ptr
#xcursorgen center_ptr.in ../xcursors/center_ptr

description

Xcursorgen reads the config-file to find the list of cursor images along with their hotspot and nominal size information. Xcursorgen converts all of the images to Xcursor format and writes them to the output-file.

Each line in the config file is of the form:
<size> <xhot> <yhot> <filename> <ms-delay>

Multiple images with the same <size> are used to create animated cursors, the <ms-delay> value on each line indicates how long each image should be displayed before switching to the next. <ms-delay> can be elided for static cursors.

If config-file is not specified, or is specified as "-", standard input is used for the configuration file. If output-file is not specified, or is specified as "-", standard output is used for the output file.

options

-V, --version

Display the version number and exit.

-?, --help

Display the usage message and exit.

-p dir, --prefix dir

Find cursor images in the directory specified by dir. If not specified, the current directory is used.


see also

Xcursor

How can this site be more helpful to YOU ?


give  feedback