The hustle free cursor building toolbox 🧰
Project description
Clickgen
The hustle free cursor building toolbox 🧰
clickgen is API for building X11 and Windows Cursors from .png files. clickgen is using anicursorgen and xcursorgen under the hood.
Install
using pip
pip3 install clickgen
ArchLinux
yay -S python-clickgen
Manjaro
pamac build python-clickgen
CLI
clickgen -h
PyPi Dependencies
- Pillow/python-pillow
Build Dependencies
- gcc
External Libraries
- libxcursor-dev
- libx11-dev
- libpng-dev (<=1.6)
Install Dependencies
macOS
brew install --cask xquartz
brew install libpng gcc
Debain/ubuntu
sudo apt install libx11-dev libxcursor-dev libpng-dev
ArchLinux/Manjaro
sudo pacman -S libx11 libxcursor libpng
Fedora/Fedora Silverblue/CentOS/RHEL
sudo dnf install libx11-devel libxcursor-devel libpng-devel
Examples
Check examples directory for building entire theme from .png files.
create a static XCursor
from pathlib import Path
from clickgen.builders import XCursor
from clickgen.core import CursorAlias
with CursorAlias.from_bitmap(png="all-scroll.png", hotspot=(5, 2)) as alias:
x_cfg = alias.create(sizes=[(22, 22),(24, 24)])
XCursor.create(alias_file=x_cfg, out_dir=Path("."))
create an animated XCursor
from pathlib import Path
from clickgen.builders import XCursor
from clickgen.core import CursorAlias
with CursorAlias.from_bitmap(png=["all-scroll-01.png", "all-scroll-02.png"], hotspot=(5, 2)) as alias:
x_cfg = alias.create(sizes=[(22, 22),(24, 24)])
XCursor.create(alias_file=x_cfg, out_dir=Path("."))
create a static Windows Cursor (.cur)
from pathlib import Path
from clickgen.builders import WindowsCursor
from clickgen.core import CursorAlias
with CursorAlias.from_bitmap(png="all-scroll.png", hotspot=(5, 2)) as alias:
win_cfg = alias.create(sizes=(24, 24))
WindowsCursor.create(alias_file=win_cfg, out_dir=Path("."))
create an animated Windows Cursor (.ani)
from pathlib import Path
from clickgen.builders import WindowsCursor
from clickgen.core import CursorAlias
with CursorAlias.from_bitmap(png=["all-scroll-01.png", "all-scroll-02.png"], hotspot=(5, 2)) as alias:
win_cfg = alias.create(sizes=(24, 24))
WindowsCursor.create(alias_file=win_cfg, out_dir=Path("."))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clickgen-1.1.8.tar.gz
(26.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
clickgen-1.1.8-py3-none-any.whl
(29.1 kB
view details)
File details
Details for the file clickgen-1.1.8.tar.gz.
File metadata
- Download URL: clickgen-1.1.8.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec853050a433dac806cbf7b428427a9ae6fd2536012bc3e5e8e194789396f9b2
|
|
| MD5 |
ba9d8b9c55d86637e0fee28ec773d016
|
|
| BLAKE2b-256 |
111f8b6d0baa610c9a9355141cc43cc49c8c5afc9fc0471ad0900bb6c8c17b2b
|
File details
Details for the file clickgen-1.1.8-py3-none-any.whl.
File metadata
- Download URL: clickgen-1.1.8-py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
457257a9573dabcd0e845ec594098d7a7b3b8bb56037bd6f14719d2538b073b5
|
|
| MD5 |
f2847b96b64f20ee793ed0a6ee0888de
|
|
| BLAKE2b-256 |
834f2b34914b426d49369891f132e317fe76e6660304308c8e44f34cd7af8027
|