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
- 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 -mto quickly set up the directory
- Put all of your Windows cursor theme files (.ico and/or .ani) in the
cursorsdirectory. - 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 | default |
|
| Text select | text |
|
| Busy | wait |
|
| Precision select | crosshair |
|
| Alternate select | up-arrow |
|
| Diagonal resize 1 | size_fdiag |
|
| Diagonal resize 2 | size_bdiag |
|
| Horizontal resize | size_hor |
|
| Vertical resize | size_ver |
|
| Move | fleur |
|
| Unavailable | not-allowed |
|
| Link select | pointer |
|
| Working in background | progress |
|
| Help select | help |
|
| 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.
- Convert the files to X cursor files using win2xcur, you can convert them all by going in the
cursorsdirectory 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
- Install uv
- Run:
git clone https://github.com/claymorwan/lncur.git
cd lncur
uv venv
source ./.venv/bin/activate
uv sync
- 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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.