A simple python script to easily port Windows cursor packs to Linux!
- Get the executable by building it or downloaded from the releases.
- Run:
mv lncur ~/.local/bin/
Don't forget to add
~/.local/bin
to your $PATH !
- 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
- Put all of your Windows cursor theme files (.ico and/or .ani) in the
cursors
directory. - 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):
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
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
Now you can use lncur to do all the symlinking:
From command line (by instaling): just run lncur
in your cursors
directory :3
From the script directly
- Go into your
cursors
directory - Paste the
lncur.py
file - Run
python lncur.py
- Install pyinstaller
- Run:
git clone https://github.com/claymorwan/lncur.git
cd lncur
pyinstaller --onefile lncur.py
- The path to the executable will be
./dist/lncur