百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

win2xcur

> 数据库
开源

win2xcur 是一个将 Windows 格式 (*.cur, *.ani) 的光标转换为 Xcursor 格式的工具。它还包含 x2wincur,用于执行相反的操作。

393 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

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.

Installation

To install the latest stable version:

bash
pip install win2xcur

To install from GitHub:

bash
pip install -e git+https://github.com/quantum5/win2xcur.git

The following unofficial packages are available (use at your own risk! I don't maintain these):

  • AUR: win2xcur, which may be installed with yay -S win2xcur or paru -S win2xcur.

Usage: win2xcur

For example, if you want to convert the sample cursor to Linux format:

bash
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:

bash
mkdir dmz-white/
x2wincur /usr/share/icons/DMZ-White/cursors/* -o dmz-white/

Usage: win2xcurtheme

To 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/cursors

You can then create example-linux/index.theme as follows:

ini
[Icon Theme]
Name = example
Comment = My example cursor theme.
Example = default

Usage: x2wincurtheme

To 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/

Usage: inspectcur

…

Troubleshooting

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:

  1. the problematic cursor as an attachment[^attach] to the issue;
  2. the command you ran; and
  3. the full output of the command run.

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· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonani-cursorconverts-cursorscur-filescursor

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库