win2xcur is a tool to convert Windows .cur and .ani cursors to Xcursor format.
Project description
win2xcur
and x2wincur
win2xcur
is a tool that converts cursors from Windows format (*.cur
,
*.ani
) to Xcursor format. This allows Windows cursor themes to be used on
Linux, for example.
win2xcur
is more than a simple image conversion tool. It preserves the cursor
hotspot and animation delay, and has an optional mode to add shadows that
replicates Windows's cursor shadow effect.
x2wincur
is a tool that does the opposite: it converts cursors in the Xcursor
format to Windows format (*.cur
, *.ani
), allowing to use your favourite
Linux cursor themes on Windows.
Installation
To install the latest stable version:
pip install win2xcur
To install from GitHub:
pip install -e git+https://github.com/quantum5/win2xcur.git
Usage: win2xcur
For example, if you want to convert the sample cursor to Linux format:
mkdir output/
win2xcur sample/crosshair.cur -o output/
-s
can be specified to enable shadows.
Multiple cursors files can be specified on the command line.
For example, to convert a directory of cursors with shadows enabled:
win2xcur input/*.{ani,cur} -o output/
For more information, run win2xcur --help
.
Usage: x2wincur
For example, if you want to convert DMZ-White to Windows:
mkdir dmz-white/
x2wincur /usr/share/icons/DMZ-White/cursors/* -o dmz-white/
Troubleshooting
win2xcur
and x2wincur
should work out of the box on most systems. If you
are using unconventional distros (e.g. Alpine) and are getting errors related
to wand
, please see the Wand documentation on installation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file win2xcur-0.1.2.tar.gz
.
File metadata
- Download URL: win2xcur-0.1.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07cb2b3974015312ba759e868430397d8bf1501c4755cad23bfcfe516c85faa2 |
|
MD5 | 43e908d11f465afca690d0476af8aabd |
|
BLAKE2b-256 | 35a6ecd638a217480df7acb11dc1130c0e4df86e54560f529d29a1dff5fe8692 |
File details
Details for the file win2xcur-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: win2xcur-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bad701ab9c4031479091d81090b60efa85d08ff5a88f68e5410a9caa46a1c5ba |
|
MD5 | 6e5a69389d8d04624a8c53ccaf966e4c |
|
BLAKE2b-256 | ef609be23c6f203669aea140f0572d2e3a93eacb5ab43615af0d5f98ab33cda4 |