hyprcursor/README.md

59 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2024-03-07 14:59:04 +00:00
## hyprcursor
2024-03-06 18:57:56 +00:00
The hyprland cursor format, library and utilities.
2024-03-07 14:59:04 +00:00
## Why?
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.
### Notable advantages over XCursor
- Automatic scaling according to a configurable, per-cursor method.
2024-03-07 20:56:13 +00:00
- Support for SVG cursors
2024-03-07 14:59:04 +00:00
- Way more space-efficient. As an example, Bibata-XCursor is 44.1MB, while it's 6.6MB in hyprcursor.
2024-05-31 14:55:20 -04:00
## Documentation
See the [wiki here](https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/)
2024-06-15 13:24:35 +02:00
check out [docs/](./docs)
and [standards](https://standards.hyprland.org/hyprcursor)
2024-05-31 14:55:20 -04:00
2024-03-07 14:59:04 +00:00
## Tools
### hyprcursor-util
Utility for creating hyprcursor themes. See its readme in `hyprcursor-util/`
### libhyprcursor
The library to use for implementing hyprcursors in your compositor or app.
It provides C and C++ bindings.
2024-03-07 18:11:32 +00:00
### Examples
For both C and C++, see `tests/`.
2024-03-07 18:03:42 +00:00
## Building
### Deps:
- hyprlang >= 0.4.2
- cairo
- libzip
2024-03-07 20:46:36 +00:00
- librsvg
2024-06-14 14:32:02 +02:00
- tomlplusplus
2024-03-07 18:03:42 +00:00
### Build
```sh
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`
2024-03-07 18:03:42 +00:00
```
Install with:
```sh
sudo cmake --install build
```