mirror of
https://gitlab.com/ykkzde/posy-cursors
synced 2025-06-13 20:53:52 +00:00
Compare commits
No commits in common. "master" and "v1.0" have entirely different histories.
13
.gitignore
vendored
13
.gitignore
vendored
@ -1,12 +1 @@
|
|||||||
Main/Black/x1/
|
/archives
|
||||||
Main/Black/x1_25/
|
|
||||||
Main/Black/x1_5/
|
|
||||||
Main/BlackTiny/x1/
|
|
||||||
Main/BlackTiny/x1_25/
|
|
||||||
Main/BlackTiny/x1_5/
|
|
||||||
Main/White/x1/
|
|
||||||
Main/White/x1_25/
|
|
||||||
Main/White/x1_5/
|
|
||||||
Main/WhiteTiny/x1/
|
|
||||||
Main/WhiteTiny/x1_25/
|
|
||||||
Main/WhiteTiny/x1_5/
|
|
||||||
|
@ -1,79 +0,0 @@
|
|||||||
stages:
|
|
||||||
- package
|
|
||||||
|
|
||||||
package-aur:
|
|
||||||
image: archlinux/base
|
|
||||||
stage: package
|
|
||||||
dependencies: []
|
|
||||||
only:
|
|
||||||
- /^v(\d+\.)*\d+$/
|
|
||||||
before_script: []
|
|
||||||
script:
|
|
||||||
- cd ./pkg/aur
|
|
||||||
|
|
||||||
- _version=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
|
|
||||||
- echo "Pushing'v$_version'"
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
- sourceURL=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$_version/cursorsPosy-v$_version.tar.gz?path=themes
|
|
||||||
- 'echo "Source: $sourceURL"'
|
|
||||||
- echo "Checking sha256sum checksums"
|
|
||||||
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
|
|
||||||
=======
|
|
||||||
# Determine remote URLs and SHA checksums
|
|
||||||
- echo "Determining SHA checksums for remote files..."
|
|
||||||
- URL_SOURCE=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz
|
|
||||||
- 'echo "Selected source URL: $URL_SOURCE"'
|
|
||||||
- echo "Determining sha256sum for remote source..."
|
|
||||||
- 'SHA_SOURCE=$(curl -sSL "$URL_SOURCE" | sha256sum | cut -d" " -f1)'
|
|
||||||
- 'echo "Got sha256sum: $SHA_SOURCE"'
|
|
||||||
>>>>>>> 1adbf2c... Fix source url
|
|
||||||
|
|
||||||
# Update PKGBUILD version, source URL and sha256sum
|
|
||||||
- echo "Updating PKGBUILDS with release information..."
|
|
||||||
<<<<<<< HEAD
|
|
||||||
- sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD
|
|
||||||
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
|
|
||||||
- sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD
|
|
||||||
=======
|
|
||||||
- sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i posy-cursors/PKGBUILD
|
|
||||||
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $URL_SOURCE | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
|
|
||||||
- sed "s/^sha256sums=.*\$/sha256sums=('$SHA_SOURCE')/" -i posy-cursors/PKGBUILD
|
|
||||||
|
|
||||||
# Get SHA hash for local and remote file w/o version, update if it has changed
|
|
||||||
# - 'SHA_STRIP_LOCAL=$(cat ffsend-git/PKGBUILD | sed /^pkgver=.\*/d | sha256sum | cut -d" " -f1)'
|
|
||||||
# - 'SHA_STRIP_REMOTE=$(curl -sSL "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=ffsend-git" | sed /^pkgver=.\*/d | sha256sum | cut -d" " -f1)'
|
|
||||||
>>>>>>> 1adbf2c... Fix source url
|
|
||||||
|
|
||||||
- echo "Installing Arch"
|
|
||||||
- pacman -Syu --noconfirm sudo base-devel openssh git openssl
|
|
||||||
|
|
||||||
# makepkg and .SRCINFO
|
|
||||||
- cd posy-cursors/
|
|
||||||
- echo "makepkg"
|
|
||||||
- sudo -u nobody makepkg -c
|
|
||||||
- sudo -u nobody makepkg --printsrcinfo > .SRCINFO
|
|
||||||
- cd ..
|
|
||||||
|
|
||||||
# Configure SSH
|
|
||||||
- mkdir -p /root/.ssh
|
|
||||||
- cp ./aur.pub /root/.ssh/id_rsa.pub
|
|
||||||
- echo "$sshAUR" | base64 -d > /root/.ssh/id_rsa
|
|
||||||
- echo "Host aur.archlinux.org" >> /root/.ssh/config
|
|
||||||
- echo " IdentityFile /root/.ssh/aur" >> /root/.ssh/config
|
|
||||||
- echo " User aur" >> /root/.ssh/config
|
|
||||||
- chmod 600 /root/.ssh/{id_rsa*,config}
|
|
||||||
- eval `ssh-agent -s`
|
|
||||||
- echo -en "${sshPASSPHRASE}" | ssh-add /root/.ssh/id_rsa
|
|
||||||
- ssh-keyscan -H aur.archlinux.org >> /root/.ssh/known_hosts
|
|
||||||
- git config --global user.name "Dmitry Porunov"
|
|
||||||
- git config --global user.email "dmitry@auteiy.me"
|
|
||||||
|
|
||||||
# Clone, commit and push
|
|
||||||
- git clone ssh://aur@aur.archlinux.org/posy-cursors.git aur-posy-cursors
|
|
||||||
- cd aur-posy-cursors
|
|
||||||
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./
|
|
||||||
- git add PKGBUILD .SRCINFO
|
|
||||||
- git commit -m "Release v$_version"
|
|
||||||
- git push
|
|
||||||
- cd ..
|
|
65
README.md
65
README.md
@ -1,65 +0,0 @@
|
|||||||
## Preview
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
### Original
|
|
||||||
http://www.michieldb.nl/other/cursors/
|
|
||||||
|
|
||||||
##### Build script from here
|
|
||||||
https://github.com/keeferrourke/capitaine-cursors
|
|
||||||
|
|
||||||
|
|
||||||
# Installation instructions
|
|
||||||
### Arch Linux
|
|
||||||
```
|
|
||||||
git clone https://aur.archlinux.org/posy-cursors.git
|
|
||||||
cd posy-cursors
|
|
||||||
makepkg -si
|
|
||||||
```
|
|
||||||
<sub><sup>yay -S posy-cursors</sup></sub>
|
|
||||||
|
|
||||||
### Manual
|
|
||||||
|
|
||||||
##### Build
|
|
||||||
|
|
||||||
You'll need:
|
|
||||||
|
|
||||||
`imagemagick` for converting images to different sizes
|
|
||||||
|
|
||||||
`xcursorgen` for creating **Xcursor** files
|
|
||||||
|
|
||||||
|
|
||||||
Run `bash src/create.sh`
|
|
||||||
|
|
||||||
`cd themes`
|
|
||||||
|
|
||||||
Copy `posy-*` folders to `~/.icons`
|
|
||||||
|
|
||||||
##### Download
|
|
||||||
|
|
||||||
Download this [archive](https://git.auteiy.me/dmitry/cursorsPosy/-/archive/master/cursorsPosy-master.tar.gz?path=themes)
|
|
||||||
|
|
||||||
Extract it
|
|
||||||
|
|
||||||
`cd cursorsPosy-master-themes/themes`
|
|
||||||
|
|
||||||
Copy `posy-*` folders to `~/.icons`
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
#### After installation you can preview some of the cursors in action here
|
|
||||||
https://codepen.io/chriscoyier/pen/uCwfB
|
|
||||||
|
|
||||||
### Special Thanks
|
|
||||||
|
|
||||||
##### To [Keefer Rourke](https://github.com/keeferrourke) for his [Capitaine Cursors](https://github.com/keeferrourke/capitaine-cursors) theme, from which I took scripts whole repository structure.
|
|
||||||
|
|
||||||
##### To [Patrick Gordon](https://github.com/paddygord) for creating [ani2 ico converter](https://github.com/paddygord/cursor-converter/) from Windows's formats
|
|
||||||
|
|
||||||
##### To FisHlaBsoMAN for creating [localemouse](https://bitbucket.org/group-of-coders/localemouse/src/master/) software that check current cursor in use.
|
|
77
build.sh
Executable file
77
build.sh
Executable file
@ -0,0 +1,77 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Capitaine cursors, macOS inspired cursors based on KDE Breeze
|
||||||
|
# Copyright (c) 2016 Keefer Rourke <keefer.rourke@gmail.com>
|
||||||
|
# Modified to include white cursors by Efus10n - 4 Mar 2019
|
||||||
|
|
||||||
|
function create {
|
||||||
|
cd "$SRC"
|
||||||
|
mkdir -p x1 x1_25 x1_5 x2
|
||||||
|
cd "$SRC"/$1
|
||||||
|
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1/${0%.svg}.png" -w 32 -h 32 $0' {} \;
|
||||||
|
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1_25/${0%.svg}.png" -w 40 -w 40 $0' {} \;
|
||||||
|
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x1_5/${0%.svg}.png" -w 48 -w 48 $0' {} \;
|
||||||
|
# find . -name "*.svg" -type f -exec sh -c 'inkscape -z -e "../x2/${0%.svg}.png" -w 64 -w 64 $0' {} \;
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
|
||||||
|
# generate cursors
|
||||||
|
if [[ "$THEME" =~ White$ ]]; then
|
||||||
|
BUILD="$SRC"/../dist-white
|
||||||
|
else BUILD="$SRC"/../dist
|
||||||
|
fi
|
||||||
|
OUTPUT="$BUILD"/cursors
|
||||||
|
ALIASES="$SRC"/cursorList
|
||||||
|
|
||||||
|
if [ ! -d "$BUILD" ]; then
|
||||||
|
mkdir "$BUILD"
|
||||||
|
fi
|
||||||
|
if [ ! -d "$OUTPUT" ]; then
|
||||||
|
mkdir "$OUTPUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -ne "Generating cursor theme...\\r"
|
||||||
|
for CUR in config/*.cursor; do
|
||||||
|
BASENAME="$CUR"
|
||||||
|
BASENAME="${BASENAME##*/}"
|
||||||
|
BASENAME="${BASENAME%.*}"
|
||||||
|
|
||||||
|
xcursorgen "$CUR" "$OUTPUT/$BASENAME"
|
||||||
|
done
|
||||||
|
echo -e "Generating cursor theme... DONE"
|
||||||
|
|
||||||
|
cd "$OUTPUT"
|
||||||
|
|
||||||
|
#generate aliases
|
||||||
|
echo -ne "Generating shortcuts...\\r"
|
||||||
|
while read ALIAS; do
|
||||||
|
FROM="${ALIAS#* }"
|
||||||
|
TO="${ALIAS% *}"
|
||||||
|
|
||||||
|
if [ -e $TO ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
ln -sr "$FROM" "$TO"
|
||||||
|
done < "$ALIASES"
|
||||||
|
echo -e "Generating shortcuts... DONE"
|
||||||
|
|
||||||
|
cd "$PWD"
|
||||||
|
|
||||||
|
echo -ne "Generating Theme Index...\\r"
|
||||||
|
INDEX="$OUTPUT/../index.theme"
|
||||||
|
if [ ! -e "$OUTPUT/../$INDEX" ]; then
|
||||||
|
touch "$INDEX"
|
||||||
|
echo -e "[Icon Theme]\nName=$THEME\n" > "$INDEX"
|
||||||
|
fi
|
||||||
|
echo -e "Generating Theme Index... DONE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# generate pixmaps from svg source
|
||||||
|
SRC=$PWD/src
|
||||||
|
THEME="Posy"
|
||||||
|
|
||||||
|
create svg
|
||||||
|
|
||||||
|
# THEME="Capitaine Cursors - White"
|
||||||
|
|
||||||
|
# create svg-white
|
BIN
dist/cursors/alias
vendored
Normal file
BIN
dist/cursors/alias
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/all-scroll
vendored
Normal file
BIN
dist/cursors/all-scroll
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/bottom_left_corner
vendored
Normal file
BIN
dist/cursors/bottom_left_corner
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/bottom_right_corner
vendored
Normal file
BIN
dist/cursors/bottom_right_corner
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/bottom_side
vendored
Normal file
BIN
dist/cursors/bottom_side
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/cell
vendored
Normal file
BIN
dist/cursors/cell
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/center_ptr
vendored
Normal file
BIN
dist/cursors/center_ptr
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/col-resize
vendored
Normal file
BIN
dist/cursors/col-resize
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/color-picker
vendored
Normal file
BIN
dist/cursors/color-picker
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/context-menu
vendored
Normal file
BIN
dist/cursors/context-menu
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/copy
vendored
Normal file
BIN
dist/cursors/copy
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/crosshair
vendored
Normal file
BIN
dist/cursors/crosshair
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/default
vendored
Normal file
BIN
dist/cursors/default
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/dnd-move
vendored
Normal file
BIN
dist/cursors/dnd-move
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/dnd-no-drop
vendored
Normal file
BIN
dist/cursors/dnd-no-drop
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/down-arrow
vendored
Normal file
BIN
dist/cursors/down-arrow
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/draft
vendored
Normal file
BIN
dist/cursors/draft
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/fleur
vendored
Normal file
BIN
dist/cursors/fleur
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/help
vendored
Normal file
BIN
dist/cursors/help
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/left-arrow
vendored
Normal file
BIN
dist/cursors/left-arrow
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/left_side
vendored
Normal file
BIN
dist/cursors/left_side
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/no-drop
vendored
Normal file
BIN
dist/cursors/no-drop
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/not-allowed
vendored
Normal file
BIN
dist/cursors/not-allowed
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/openhand
vendored
Normal file
BIN
dist/cursors/openhand
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/pencil
vendored
Normal file
BIN
dist/cursors/pencil
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/pirate
vendored
Normal file
BIN
dist/cursors/pirate
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/pointer
vendored
Normal file
BIN
dist/cursors/pointer
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/progress
vendored
Normal file
BIN
dist/cursors/progress
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/right-arrow
vendored
Normal file
BIN
dist/cursors/right-arrow
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/right_ptr
vendored
Normal file
BIN
dist/cursors/right_ptr
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/right_side
vendored
Normal file
BIN
dist/cursors/right_side
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/row-resize
vendored
Normal file
BIN
dist/cursors/row-resize
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/size_bdiag
vendored
Normal file
BIN
dist/cursors/size_bdiag
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/size_fdiag
vendored
Normal file
BIN
dist/cursors/size_fdiag
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/size_hor
vendored
Normal file
BIN
dist/cursors/size_hor
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/size_ver
vendored
Normal file
BIN
dist/cursors/size_ver
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/text
vendored
Normal file
BIN
dist/cursors/text
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/top_left_corner
vendored
Normal file
BIN
dist/cursors/top_left_corner
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/top_right_corner
vendored
Normal file
BIN
dist/cursors/top_right_corner
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/top_side
vendored
Normal file
BIN
dist/cursors/top_side
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/up-arrow
vendored
Normal file
BIN
dist/cursors/up-arrow
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/vertical-text
vendored
Normal file
BIN
dist/cursors/vertical-text
vendored
Normal file
Binary file not shown.
BIN
dist/cursors/wait
vendored
Normal file
BIN
dist/cursors/wait
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user