win2xcur 是一个将 Windows 格式 (*.cur, *.ani) 的光标转换为 Xcursor 格式的工具。它还包含 x2wincur,用于执行相反的操作。
win2xcur 是一个将 Windows 格式 (*.cur, *.ani) 的光标转换为 Xcursor 格式的工具。它还包含 x2wincur,用于执行相反的操作。
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.
win2xcurtheme converts a packaged Windows cursor theme with an INF installer
into a directory of Xcursors, which can be used to construct your own cursor
theme on Linux.
Conversely, x2wincurtheme converts a directory of Xcursors into Windows, while
generating the complementary install.inf for easy installation.
Finally, inspectcur serves as a debugging tool, able to load arbitrary Windows
or X11 cursors and show the animation settings, image sizes, and hotspots.
To install the latest stable version:
pip install win2xcurTo install from GitHub:
pip install -e git+https://github.com/quantum5/win2xcur.gitThe following unofficial packages are available (use at your own risk! I don't maintain these):
win2xcur, which may be
installed with yay -S win2xcur or paru -S win2xcur.win2xcurFor 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.
x2wincurFor example, if you want to convert DMZ-White to Windows:
mkdir dmz-white/
x2wincur /usr/share/icons/DMZ-White/cursors/* -o dmz-white/win2xcurthemeTo convert an example Windows cursor theme in example with an INF installer
install.inf:
mkdir -p example-linux/cursors
win2xcurtheme example/install.inf -o example-linux/cursorsYou can then create example-linux/index.theme as follows:
[Icon Theme]
Name = example
Comment = My example cursor theme.
Example = defaultx2wincurthemeTo convert a whole Xcursor theme to Windows format, run x2wincurtheme on the
cursors subdirectory of an Xcursor theme, then specify a name with -n.
For example, for DMZ-White:
x2wincurtheme /usr/share/icons/DMZ-White/cursors -n DMZ-White -o dmz-white/inspectcur…win2xcur, x2wincur, win2xcurtheme, and x2wincurtheme 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.
If you are having issues with a particular cursor or cursor theme, feel free to open an issue. However, be sure to include:
If I can't reproduce the issue, I will not be able to help you.
[^attach]: Don't make me sign up to a website or pay to download your cursor.
暂无开放 Issues,或尚未同步最近议题。