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

@ -74,7 +74,7 @@ Enjoy **[macOS Big Sur](https://www.apple.com/macos/big-sur-preview/)** Cursor T
<details> <details>
<summary><strong>Table of Contents</strong> (click to expand)</summary> <summary><strong>Table of Contents</strong> (click to expand)</summary>
- [Apple Cursor](#apple-cursor) - [Apple Cursor](#apple-cursor)
- [Cursor Sizes](#cursor-sizes) - [Cursor Sizes](#cursor-sizes)
- [Colors](#colors) - [Colors](#colors)
- [Quick install](#quick-install) - [Quick install](#quick-install)
@ -82,7 +82,7 @@ Enjoy **[macOS Big Sur](https://www.apple.com/macos/big-sur-preview/)** Cursor T
- [Linux/X11](#linuxx11) - [Linux/X11](#linuxx11)
- [Windows](#windows) - [Windows](#windows)
- [Preview:](#preview) - [Preview:](#preview)
- [Dependencies](#dependencies) - [Dependencies](#dependencies)
- [External Libraries](#external-libraries) - [External Libraries](#external-libraries)
- [Install External Libraries](#install-external-libraries) - [Install External Libraries](#install-external-libraries)
- [macOS](#macos) - [macOS](#macos)
@ -95,11 +95,14 @@ Enjoy **[macOS Big Sur](https://www.apple.com/macos/big-sur-preview/)** Cursor T
- [Build From Scratch](#build-from-scratch) - [Build From Scratch](#build-from-scratch)
- [⚡ Auto Build (using GitHub Actions)](#-auto-build-using-github-actions) - [⚡ Auto Build (using GitHub Actions)](#-auto-build-using-github-actions)
- [Manual Build](#manual-build) - [Manual Build](#manual-build)
- [Build & Install only `XCursor` theme](#build--install-only-xcursor-theme) - [Build `XCursor` theme](#build-xcursor-theme)
- [Build & Install only `Windows` theme](#build--install-only-windows-theme) - [Customize `XCursor` size](#customize-xcursor-size)
- [Bugs](#bugs) - [Install `XCursor` theme](#install-xcursor-theme)
- [Getting Help](#getting-help) - [Build `Windows` theme](#build-windows-theme)
- [Contributing](#contributing) - [Customize `Windows Cursor` size](#customize-windows-cursor-size)
- [Bugs](#bugs)
- [Getting Help](#getting-help)
- [Contributing](#contributing)
- [Support](#support) - [Support](#support)
</details> </details>
@ -241,29 +244,40 @@ GitHub Actions is automatically runs on every `push`(on **main** and **dev** bra
make make
``` ```
#### Build & Install only `XCursor` theme #### Build `XCursor` theme
```bash ```bash
make unix make unix
make install ```
# OR
#### 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 sudo make install # install as root
``` ```
#### Build & Install only `Windows` theme #### Build `Windows` theme
```bash ```bash
make windows make windows
``` ```
> For double click installation, Check [this](#windows). #### Customize `Windows Cursor` size
1. Open the `settings` app. ```bash
2. **Goto** `Devices` -> `Mouse` -> `Additional Mouse Options`. make windows WIN_SIZE=96 # Supports only one pixel-size
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. > For installation follow [these](#windows) steps.
6. Click "**apply**" and "**ok**".
<!-- Bug Report --> <!-- Bug Report -->

View file

@ -6,6 +6,10 @@ all: clean setup build
.ONESHELL: .ONESHELL:
SHELL:=/bin/bash 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: clean:
@rm -rf applbuild.egg-info build dist @rm -rf applbuild.egg-info build dist
@find -iname "*.pyc" -delete @find -iname "*.pyc" -delete
@ -21,10 +25,10 @@ setup: setup.py
@. venv/bin/activate; python3 setup.py install --record files.txt @. venv/bin/activate; python3 setup.py install --record files.txt
build: setup build.py 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 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 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)