Customize Cursor's sizes from 'make' command

This commit is contained in:
ful1e5 2021-02-05 19:59:26 +05:30
parent 05ce070192
commit ae0cddf732
2 changed files with 56 additions and 38 deletions

View file

@ -95,8 +95,11 @@ Enjoy **[macOS Big Sur](https://www.apple.com/macos/big-sur-preview/)** Cursor T
- [Build From Scratch](#build-from-scratch)
- [⚡ Auto Build (using GitHub Actions)](#-auto-build-using-github-actions)
- [Manual Build](#manual-build)
- [Build & Install only `XCursor` theme](#build--install-only-xcursor-theme)
- [Build & Install only `Windows` theme](#build--install-only-windows-theme)
- [Build `XCursor` theme](#build-xcursor-theme)
- [Customize `XCursor` size](#customize-xcursor-size)
- [Install `XCursor` theme](#install-xcursor-theme)
- [Build `Windows` theme](#build-windows-theme)
- [Customize `Windows Cursor` size](#customize-windows-cursor-size)
- [Bugs](#bugs)
- [Getting Help](#getting-help)
- [Contributing](#contributing)
@ -241,29 +244,40 @@ GitHub Actions is automatically runs on every `push`(on **main** and **dev** bra
make
```
#### Build & Install only `XCursor` theme
#### Build `XCursor` theme
```bash
make unix
make install
```
#### Customize `XCursor` size
```bash
make unix X_SIZES=22 # Only built '22px' pixel-size.
make unix X_SIZES=22 24 32 # Multiple sizes are provided with ' '(Space)
```
#### Install `XCursor` theme
```bash
make install # install as user
# OR
sudo make install # install as root
```
#### Build & Install only `Windows` theme
#### Build `Windows` theme
```bash
make windows
```
> For double click installation, Check [this](#windows).
#### Customize `Windows Cursor` size
1. Open the `settings` app.
2. **Goto** `Devices` -> `Mouse` -> `Additional Mouse Options`.
3. **Goto** the `pointers` tab.
4. Replace each cursor in the currently applied cursor set with the corresponding cursor in the `macOSBigSur_Windows` folder.
5. Click "**save as**" and type in the desired name.
6. Click "**apply**" and "**ok**".
```bash
make windows WIN_SIZE=96 # Supports only one pixel-size
```
> For installation follow [these](#windows) steps.
<!-- Bug Report -->

View file

@ -6,6 +6,10 @@ all: clean setup build
.ONESHELL:
SHELL:=/bin/bash
X_SIZES ?=22 24 28 32 40 48 56 64 72 80 88 96
WIN_CANVAS_SIZE ?= 32
WIN_SIZE ?= 24
clean:
@rm -rf applbuild.egg-info build dist
@find -iname "*.pyc" -delete
@ -21,10 +25,10 @@ setup: setup.py
@. venv/bin/activate; python3 setup.py install --record files.txt
build: setup build.py
@. venv/bin/activate; python3 build.py
@. venv/bin/activate; python3 build.py --xsizes $(X_SIZES) --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE)
build_unix: setup build.py
@. venv/bin/activate; python3 build.py unix
@. venv/bin/activate; python3 build.py unix --xsizes $(X_SIZES)
build_windows: setup build.py
@. venv/bin/activate; python3 build.py windows
@. venv/bin/activate; python3 build.py windows --win-size $(WIN_SIZE) --win-canvas-size $(WIN_CANVAS_SIZE)