The hyprland cursor format, library and utilities.
XCursor sucks, and we still use it today.
- Scaling of XCursors is horrible
- XCursor does not support vector cursors
- XCursor is ridiculously space-inefficient
Hyprcursor fixes all three. It's an efficient cursor theme format that doesn't suck as much.
- Automatic scaling according to a configurable, per-cursor method.
- Support for SVG cursors
- Way more space-efficient. As an example, Bibata-XCursor is 44.1MB, while it's 6.6MB in hyprcursor.
Utility for creating hyprcursor themes. See its readme in hyprcursor-util/
The library to use for implementing hyprcursors in your compositor or app.
It provides C and C++ bindings.
For both C and C++, see tests/
.
See docs/
.
Library:
- Support animated cursors
- Support SVG cursors
Util:
- Support compiling a theme with X
- Support decompiling animated cursors
- hyprlang >= 0.4.2
- cairo
- libzip
- librsvg
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
Install with:
sudo cmake --install build