LinuxCommandLibrary

xcursorgen

create an X cursor file from a collection of PNG images

TLDR

Create an X cursor file using a configuration file

$ xcursorgen [path/to/config.cursor] [path/to/output_file]
copy


Create an X cursor file using a configuration file and specify the path to the image files
$ xcursorgen --prefix [path/to/image_directory/] [path/to/config.cursor] [path/to/output_file]
copy


Create an X cursor file using a configuration file and write the output to stdout
$ xcursorgen [path/to/config.cursor]
copy

SYNOPSIS

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

DESCRIPTION

Xcursorgen reads the config-file to find the list of cursor images along with their hotspot and nominal size information. Xcursorgen con‐ verts all of the images to Xcursor format and writes them to the out‐ put-file. Each line in the config file is of the form: Multiple images with the same are used to create animated cur‐ sors, the value on each line indicates how long each image should be displayed before switching to the next. 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(3)

Copied to clipboard