logo

ultrasharp-cursor-theme

Precision and speed oriented cursor theme
commit: d8d1a489665465f05cbecf77162faacb0992f0c4
parent 546313c3cbc9ac79cdbacbfa479be36b71873d8a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 17 Apr 2024 17:43:13 +0200

{e,n,s}-resize: new

Diffstat:

M.gitignore3+++
MREADME.md1+
Mconfigure21+++++++++++++++++++++
Acursors/bottom_side2++
Acursors/e-resize0
Acursors/n-resize0
Acursors/right_side2++
Acursors/s-resize0
Acursors/top_side2++
Ae-resize.cfg1+
An-resize.cfg1+
As-resize.cfg1+
12 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -2,3 +2,6 @@ # SPDX-License-Identifier: BSD-3-Clause /build.ninja +/e-resize.png +/n-resize.png +/s-resize.png diff --git a/README.md b/README.md @@ -10,6 +10,7 @@ This is a precision and speed oriented cursor theme, the hotspot is known, contr - POSIX Shell - [quoter](https://github.com/vaeth/quoter/) - [xcursorgen](https://gitlab.freedesktop.org/xorg/app/xcursorgen) +- `magick(1)` command (ImageMagick, GraphicsMagick, …) ## Supported environments - XOrg (deprecated) diff --git a/configure b/configure @@ -42,6 +42,7 @@ required() { PREFIX="${PREFIX:-/usr/local}" XCURSORGEN="${XCURSORGEN:-xcursorgen}" QUOTER="${QUOTER:-quoter}" +MAGICK="${MAGICK:-magick}" printf 'Checking %s command existance ...' "${QUOTER}" command -v "${QUOTER}" >/dev/null ; required @@ -83,6 +84,9 @@ ICONDIR=${ICONDIR:-${DATADIR}/icons} printf 'Checking %s command existance ...' "${XCURSORGEN}" command -v "${XCURSORGEN}" >/dev/null ; required +printf 'Checking %s command existance ...' "${MAGICK}" +command -v "${MAGICK}" >/dev/null ; required + CURSORS=' arrow context-menu @@ -93,7 +97,10 @@ pointer help row-resize col-resize +e-resize w-resize +n-resize +s-resize nesw-resize nwse-resize vertical-text @@ -110,6 +117,7 @@ cat <<EOF THEMEDIR = ${ICONDIR}/${NAME} XCURSORGEN = ${XCURSORGEN} +MAGICK = ${MAGICK} rule gen_config command = ${arg0} ${args} @@ -123,8 +131,21 @@ rule cursorgen rule install command = mkdir -p \$\${DESTDIR}\${THEMEDIR}/ && cp -r cursors \$\${DESTDIR}\${THEMEDIR}/ && cp index.theme \$\${DESTDIR}\${THEMEDIR}/ +rule flop + command = \$MAGICK \$in -flop \$out + +rule flip + command = \$MAGICK \$in -flip \$out + +rule 90rot + command = \$MAGICK \$in -rotate 90 \$out + build install: install | cursors +build e-resize.png: flop w-resize.png +build n-resize.png: 90rot w-resize.png +build s-resize.png: flip n-resize.png + EOF printf 'build all: phony' diff --git a/cursors/bottom_side b/cursors/bottom_side @@ -0,0 +1 @@ +s-resize +\ No newline at end of file diff --git a/cursors/e-resize b/cursors/e-resize Binary files differ. diff --git a/cursors/n-resize b/cursors/n-resize Binary files differ. diff --git a/cursors/right_side b/cursors/right_side @@ -0,0 +1 @@ +e-resize +\ No newline at end of file diff --git a/cursors/s-resize b/cursors/s-resize Binary files differ. diff --git a/cursors/top_side b/cursors/top_side @@ -0,0 +1 @@ +n-resize +\ No newline at end of file diff --git a/e-resize.cfg b/e-resize.cfg @@ -0,0 +1 @@ +16 14 8 e-resize.png diff --git a/n-resize.cfg b/n-resize.cfg @@ -0,0 +1 @@ +16 8 2 n-resize.png diff --git a/s-resize.cfg b/s-resize.cfg @@ -0,0 +1 @@ +16 8 14 s-resize.png