Skip to main content

Lncur

A simple python CLI to easily port Windows cursor packs to Linux!

Install

Pypi

pip install lncur

Nix flake

Add this to your inputs

inputs.lncur.url = "git+https://codeberg.org/claymorwan/devnenvcp"

Then install the package like so:

environment.systemPackages = [
  inputs.lncur.packages.${pkgs.stdenv.hostPlatform.system}.default
];

for home-manager:

home.packages = [
  inputs.lncur.packages.${pkgs.stdenv.hostPlatform.system}.default
];

You can also directly run

nix run git+https://codeberg.org/claymorwan/lncur -- <args>

Aur

lncur is also available on the AUR with your AUR helper.

yay -S python-lncur

Usage

Setup

  1. First you need to set up your cursor theme directory, you can refer to the step 5 of the KDE guide for creating cursor theme. It should look like this :
Root of your super cool ported theme :D
├── cursors
└── index.theme

You can run lncur -m to quickly set up the directory

  1. Put all of your Windows cursor theme files (.ico and/or .ani) in the cursors directory.
  2. Rename all your file like the following (here using default Windows cursor names, depending on what cursor theme you're porting, the files can be named different, it's fine just rename them):
Cursor Windows name Linux/Xcursor name
Normal_select.png Normal select default
Text_select.png Text select text
Busy.png Busy wait
Precision_select.png Precision select crosshair
Alternate_select.png Alternate select up-arrow
Diagonal_resize_1.png Diagonal resize 1 size_fdiag
Diagonal_resize_2.png Diagonal resize 2 size_bdiag
Horizontal_resize.png Horizontal resize size_hor
Horizontal_resize.png Vertical resize size_ver
Move.png Move fleur
Unavailable.png Unavailable not-allowed
Link_select.png Link select pointer
Working_in_background.gif Working in background progress
Help_select.png Help select help
Pen.png The pen one idk the name pencil

All of the names are taken from the KDE breeze cursor theme
Cursors image from Microsoft
You can remove the pin and person cursors as they're not used.

  1. Convert the files to X cursor files using win2xcur, you can convert them all by going in the cursors directory and run
win2xcur *

Now your cursor theme should look like this now:

Root of ur super amazing theme :3
├── cursors
│   ├── crosshair
│   ├── default
│   ├── fleur
│   ├── help
│   ├── not-allowed
│   ├── pencil
│   ├── pointer
│   ├── progress
│   ├── size_bdiag
│   ├── size_fdiag
│   ├── size_hor
│   ├── size_ver
│   ├── text
│   ├── up-arrow
│   └── wait
└── index.theme

Running the program

Now you can use lncur to do all the symlinking by running lncur inside the directory where the cursors dir and running:

lncur -l

All arguments:

usage: lncur [-h] [-v] [-l] [-m MAKE]

options:
  -h, --help       show this help message and exit
  -v, --version    Prints version
  -l, --link       Symlinks cursors files
  -m, --make MAKE  Make a cursor theme directory

Dev

  1. Install uv
  2. Run:
git clone https://github.com/claymorwan/lncur.git
cd lncur
uv venv
source ./.venv/bin/activate
uv sync
  1. Build package with uv build

Metadata

Release files for lncur 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lncur 1.2.0
File Size Uploaded Provenance Actions
lncur-1.2.0.tar.gz 15.9 kB Without provenance Details for lncur-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lncur 1.2.0
File Interpreter ABI Platform Actions
lncur-1.2.0-py3-none-any.whl Python 3 none any Details for lncur-1.2.0-py3-none-any.whl

Total release size: 22.3 kB

Release files / lncur-1.2.0.tar.gz

Download URL lncur-1.2.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
558da65dae2c43022c3ce670b18e69fab98e0a22a430d9aa1703604694cb1e64
BLAKE2b-256 checksum
How to use checksums
84d1c52ef92d8929f9d307fe4d3a3319280fcdae11e60378832ccfce8b32dd29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.11","id":"zokor","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / lncur-1.2.0-py3-none-any.whl

Download URL lncur-1.2.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e400daecc7fe0dc4bc86b693902832af9ec3c341f77cc206b57d3dd812f69c2
BLAKE2b-256 checksum
How to use checksums
19443b429a5fa437f754154c1a525bfe4a5ea70c3ec17d8bd1dfaba5ebf4ffa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.11","id":"zokor","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for lncur 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page