1
0
Fork 0
mirror of https://github.com/hyprwm/hyprcursor.git synced 2025-04-10 12:42:13 +02:00
A read-only mirror of https://github.com/hyprwm/hyprcursor
Find a file
2025-03-17 12:46:18 +00:00
.github/workflows CI: add test action 2024-10-08 23:47:22 +03:00
docs docs: Correction in hotspot coordinates documentation () 2024-09-28 15:13:23 +01:00
hyprcursor-util core: clang-tidy and comp fixes () 2025-02-03 20:49:19 +01:00
include/hyprcursor core: clang-tidy and comp fixes () 2025-02-03 20:49:19 +01:00
libhyprcursor meta: fix hyprlang colon handling 2025-02-04 10:29:10 +00:00
nix flake.lock: update 2024-12-16 17:58:29 +02:00
tests tests: fix %d->%ld () 2025-01-20 16:38:36 +00:00
.clang-format Initial commit: very basics 2024-03-07 03:19:38 +00:00
.clang-tidy core: clang-tidy and comp fixes () 2025-02-03 20:49:19 +01:00
.gitignore gitignore: add .cache 2024-09-30 18:29:41 +01:00
CMakeLists.txt core: clang-tidy and comp fixes () 2025-02-03 20:49:19 +01:00
flake.lock flake.lock: update 2025-01-23 14:22:17 +02:00
flake.nix Nix: add hyprcursor-with-tests 2024-10-08 23:45:47 +03:00
hyprcursor.pc.in Initial commit: very basics 2024-03-07 03:19:38 +00:00
LICENSE Initial commit 2024-03-06 18:57:56 +00:00
README.md README: remove todos 2025-03-17 12:46:18 +00:00
VERSION version: bump to 0.1.12 2025-03-17 12:44:33 +00:00

hyprcursor

The hyprland cursor format, library and utilities.

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.
  • Support for SVG cursors
  • Way more space-efficient. As an example, Bibata-XCursor is 44.1MB, while it's 6.6MB in hyprcursor.

Documentation

See the wiki here check out docs/ and standards

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.

Examples

For both C and C++, see tests/.

Building

Deps:

  • hyprlang >= 0.4.2
  • cairo
  • libzip
  • librsvg
  • tomlplusplus

Build

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