Layout Classic Rosé Pine Rosé Pine
Moon
Rosé Pine
Dawn
Gruvbox
Dark
Gruvbox
Light
Catppuccin
Latte
Catppuccin
Frappé
Catppuccin
Macchiato
Catppuccin
Mocha
Modern Modern Classic Modern Rosé Pine Modern Rosé Pine Moon Modern Rosé Pine Dawn Modern Gruvbox Dark Modern Gruvbox Light Modern Catppuccin Latte Modern Catppuccin Frappé Modern Catppuccin Macchiato Modern Catppuccin Mocha
Modern Right Modern Right Classic Modern Right Rosé Pine Modern Right Rosé Pine Moon Modern Right Rosé Pine Dawn Modern Right Gruvbox Dark Modern Right Gruvbox Light Modern Right Catppuccin Latte Modern Right Catppuccin Frappé Modern Right Catppuccin Macchiato Modern Right Catppuccin Mocha
Original Original Classic Original Rosé Pine Original Rosé Pine Moon Original Rosé Pine Dawn Original Gruvbox Dark Original Gruvbox Light Original Catppuccin Latte Original Catppuccin Frappé Original Catppuccin Macchiato Original Catppuccin Mocha
Original Right Original Right Classic Original Right Rosé Pine Original Right Rosé Pine Moon Original Right Rosé Pine Dawn Original Right Gruvbox Dark Original Right Gruvbox Light Original Right Catppuccin Latte Original Right Catppuccin Frappé Original Right Catppuccin Macchiato Original Right Catppuccin Mocha
# Bibata Cursor Custom Bibata color variants and source layouts for my Nix cursor packages. [![Tags](https://img.shields.io/badge/Tangled-tags-cc241d?style=flat-square&labelColor=504945)](https://tangled.org/did:plc:v3hmlmsytt6b2zvi3e35o2oj/bibata-cursor/tags) [![Repo Size](https://img.shields.io/github/repo-size/adam01110/bibata-cursor?style=flat-square&label=repo%20size&labelColor=504945&color=3c3836)](https://github.com/adam01110/bibata-cursor)
[![Nix](https://img.shields.io/badge/Nix-flakes-689d6a?style=flat-square&labelColor=504945&logo=nixos&logoColor=ebdbb2)](https://nixos.wiki/wiki/Flakes) [![Bun](https://img.shields.io/badge/Bun-1.3-fb4934?style=flat-square&labelColor=504945&logo=bun&logoColor=ebdbb2)](https://bun.sh) [![License](https://img.shields.io/github/license/adam01110/bibata-cursor?style=flat-square&labelColor=504945&color=b16286)](LICENSE) [Overview](#overview) - [Variants](#variants) - [Usage](#usage)
[Building](#building) - [Packaging](#packaging) - [Credits](#credits)
I created this fork to support themed versions of Bibata Cursor in Nix packages. It provides the rendered bitmap sources used to build matching XCursor and Hyprcursor themes. The repository is a fork of [`LOSEARDES77/Bibata-Cursor-hyprcursor`](https://github.com/LOSEARDES77/Bibata-Cursor-hyprcursor), which is itself a fork of the original [`ful1e5/Bibata_Cursor`](https://github.com/ful1e5/Bibata_Cursor). ## Overview - Renders reproducible Bibata bitmap sets from the original SVG sources. - Keeps Modern, Modern Right, Original, and Original Right source layouts. - Publishes each configured color variant as a separate release archive. - Provides handedness-aware `ctgen` and Hyprcursor conversion files used by my NUR packages. - Includes a Nix development shell and treefmt checks for repository tooling. ## Variants | Palette | Base | Outline | Activity | | --- | --- | --- | --- | | Classic | `#000000` | `#FFFFFF` | `#000000` | | Rosé Pine | `#26233A` | `#E0DEF4` | `#191724` | | Rosé Pine Moon | `#393552` | `#E0DEF4` | `#232136` | | Rosé Pine Dawn | `#F2E9E1` | `#464261` | `#FAF4ED` | | Gruvbox Dark | `#504945` | `#FBF1C7` | `#282828` | | Gruvbox Light | `#D5C4A1` | `#282828` | `#FBF1C7` | | Catppuccin Latte | `#EFF1F5` | `#4C4F69` | `#E6E9EF` | | Catppuccin Frappé | `#303446` | `#C6D0F5` | `#292C3C` | | Catppuccin Macchiato | `#24273A` | `#CAD3F5` | `#1E2030` | | Catppuccin Mocha | `#1E1E2E` | `#CDD6F4` | `#181825` | ## Usage Rendered PNG archives are available as [Tangled tag artifacts](https://tangled.org/did:plc:v3hmlmsytt6b2zvi3e35o2oj/bibata-cursor/tags). They are build inputs rather than directly installable cursor themes. The finished XCursor and Hyprcursor themes are published through my [NUR repository](https://github.com/adam01110/nur). Follow the [NUR installation guide](https://github.com/nix-community/NUR#installation), then install both packages for combined XCursor and Hyprcursor support: ```nix { home.packages = with pkgs.nur.repos.adam0; [ bibata.modern.cursors.gruvbox-dark bibata.modern.cursors.gruvbox-dark.hyprcursor ]; } ``` Packages follow this structure for every layout and palette: ```nix bibata..cursors. bibata..cursors..hyprcursor ``` ## Building The repository includes an [`.envrc`](.envrc) that uses the Nix flake development shell. With [direnv](https://direnv.net/) installed and hooked into your shell, allow it once and install the locked JavaScript dependencies: ```bash direnv allow bun install --frozen-lockfile ``` Without direnv, enter the same shell manually with `nix develop`. Render every palette and layout combination configured in `render.json`: ```bash bun run generate ``` The generated PNG assets are written to `bitmaps/`. Rendering uses up to four workers by default. Override the worker count when more CPU and memory are available: ```bash BIBATA_GENERATE_JOBS=8 bun run generate ``` To change or add a color variant, add another entry to `render.json`. Each color mapping replaces the source SVG's base, outline, or activity color during rendering. Keep entries for all four layouts when a palette should be available across the complete cursor set. The source layout symlinks can be regenerated after changing files under `svg/groups`: ```bash bun run link ``` ## Packaging The downstream packages in [`adam01110/nur`](https://github.com/adam01110/nur) fetch this source tree, export the recolored scalable SVGs, and render fresh PNGs with `resvg`. They use [`build.toml`](build.toml) with `ctgen` to build the XCursor fallback and install both `cursors/` and `cursors_scalable/` together. No bitmap release archive is needed by these packages. For an existing bitmap directory, build XCursor with: ```bash ctgen build.toml \ -d bitmaps/Bibata-Modern-Gruvbox-Dark \ -n Bibata-Modern-Gruvbox-Dark \ -c "Gruvbox dark Bibata modern XCursors" ``` Use [`build.right.toml`](build.right.toml) instead when packaging a theme whose name ends in `-Right`. It contains the right-handed hotspots required by the mirrored pointer artwork; using `build.toml` would produce incorrect click positions. Hyprcursor builds independently from the SVG sources, without an XCursor build, `ctgen`, or `xcur2png`. The scalable and Hyprcursor exporters share recoloring, frame ordering, aliases, hotspots, and timing: ```bash bun run build:hyprcursor python3 scripts/build-hyprcursor.py --theme Bibata-Modern-Classic --output bin ``` ### Scalable SVG themes Build `cursors_scalable/` for KDE Plasma and GNOME SVG cursor consumers: ```bash bun run build:scalable python3 scripts/build-scalable.py --theme Bibata-Modern-Classic --output bin ``` The exporter supports every palette and all four layouts. It uses the same hotspots, aliases, and animation delays as the XCursor build configuration. It preserves existing `cursors/` and `index.theme` files when adding SVGs to a compiled theme. Install the whole theme under an XDG icon directory such as `~/.local/share/icons`, not `~/.icons`, for GNOME SVG discovery. XCursor remains necessary for X11/XWayland fallback; Hyprcursor is a separate format. Animations contain 54 frames with a 40 ms delay (2.16 seconds per cycle). Adjust `x11_delay` in both build configurations to change playback speed; rendering `fps` is not a playback-speed setting. The scalable and Hyprcursor outputs store one resolution-independent SVG per frame instead of duplicating bitmap frames at every XCursor size. XCursor size selection remains unchanged. ## Credits - [Bibata Cursor](https://github.com/ful1e5/Bibata_Cursor), designed by [Abdulkaiz Khatri](https://github.com/ful1e5) - [Bibata Cursor Hyprcursor](https://github.com/LOSEARDES77/Bibata-Cursor-hyprcursor) - [Wedge Loading Animation](https://loading.io/spinner/wedges/-pie-wedge-pizza-circle-round-rotate) - [Adwaita](https://github.com/GNOME/adwaita-icon-theme) - [DMZ](https://github.com/GalliumOS/dmz-cursor-theme) - [Yaru](https://github.com/ubuntu/yaru)