This commit is contained in:
vinceliuice 2020-01-26 22:33:47 +08:00
parent 287a62ef9d
commit ae49e7ed5f
257 changed files with 10864 additions and 0 deletions

34
README.md Normal file
View file

@ -0,0 +1,34 @@
# McMojave cursors
This is an x-cursor theme inspired by macOS and based on KDE Breeze.
## Installation
To install the cursor theme simply copy the compiled theme to your icons
directory. For local user installation:
```
cp -pr dist/ ~/.icons/McMojave-cursors
```
For system-wide installation for all users:
```
sudo cp -pr dist/ /usr/share/icons/McMojave-cursors
```
Then set the theme with your preferred desktop tools.
## Building from source
You'll find everything you need to build and modify this cursor set in
the `src/` directory. To build the xcursor theme from the SVG source
run:
```
./build.sh
```
This will generate the pixmaps and appropriate aliases.
The freshly compiled cursor theme will be located in `dist/`
## Preview
![](preview.png)

67
build.sh Executable file
View file

@ -0,0 +1,67 @@
#!/bin/bash
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
BUILD="$SRC"/../dist
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="McMojave Cursors"
create svg

View file

@ -0,0 +1 @@
progress

View file

@ -0,0 +1 @@
size_ver

View file

@ -0,0 +1 @@
circle

View file

@ -0,0 +1 @@
progress

View file

@ -0,0 +1 @@
copy

View file

@ -0,0 +1 @@
alias

View file

@ -0,0 +1 @@
progress

View file

@ -0,0 +1 @@
dnd-move

View file

@ -0,0 +1 @@
help

View file

@ -0,0 +1 @@
copy

View file

@ -0,0 +1 @@
alias

View file

@ -0,0 +1 @@
dnd-move

View file

@ -0,0 +1 @@
pointer

View file

@ -0,0 +1 @@
alias

BIN
dist/cursors/alias vendored Normal file

Binary file not shown.

BIN
dist/cursors/all-scroll vendored Normal file

Binary file not shown.

1
dist/cursors/arrow vendored Symbolic link
View file

@ -0,0 +1 @@
default

View file

@ -0,0 +1 @@
copy

BIN
dist/cursors/bottom_left_corner vendored Normal file

Binary file not shown.

BIN
dist/cursors/bottom_right_corner vendored Normal file

Binary file not shown.

BIN
dist/cursors/bottom_side vendored Normal file

Binary file not shown.

BIN
dist/cursors/cell vendored Normal file

Binary file not shown.

BIN
dist/cursors/center_ptr vendored Normal file

Binary file not shown.

1
dist/cursors/circle vendored Symbolic link
View file

@ -0,0 +1 @@
not-allowed

1
dist/cursors/closedhand vendored Symbolic link
View file

@ -0,0 +1 @@
dnd-move

BIN
dist/cursors/col-resize vendored Normal file

Binary file not shown.

BIN
dist/cursors/color-picker vendored Normal file

Binary file not shown.

BIN
dist/cursors/context-menu vendored Normal file

Binary file not shown.

BIN
dist/cursors/copy vendored Normal file

Binary file not shown.

1
dist/cursors/cross vendored Symbolic link
View file

@ -0,0 +1 @@
crosshair

1
dist/cursors/crossed_circle vendored Symbolic link
View file

@ -0,0 +1 @@
not-allowed

BIN
dist/cursors/crosshair vendored Normal file

Binary file not shown.

View file

@ -0,0 +1 @@
help

BIN
dist/cursors/default vendored Normal file

Binary file not shown.

1
dist/cursors/dnd-copy vendored Symbolic link
View file

@ -0,0 +1 @@
copy

BIN
dist/cursors/dnd-move vendored Normal file

Binary file not shown.

BIN
dist/cursors/dnd-no-drop vendored Normal file

Binary file not shown.

1
dist/cursors/dnd-none vendored Symbolic link
View file

@ -0,0 +1 @@
dnd-move

BIN
dist/cursors/down-arrow vendored Normal file

Binary file not shown.

BIN
dist/cursors/draft vendored Normal file

Binary file not shown.

1
dist/cursors/e-resize vendored Symbolic link
View file

@ -0,0 +1 @@
size_hor

View file

@ -0,0 +1 @@
pointer

View file

@ -0,0 +1 @@
dnd-move

BIN
dist/cursors/fleur vendored Normal file

Binary file not shown.

1
dist/cursors/forbidden vendored Symbolic link
View file

@ -0,0 +1 @@
no-drop

1
dist/cursors/grab vendored Symbolic link
View file

@ -0,0 +1 @@
openhand

1
dist/cursors/grabbing vendored Symbolic link
View file

@ -0,0 +1 @@
dnd-move

1
dist/cursors/h_double_arrow vendored Symbolic link
View file

@ -0,0 +1 @@
size_hor

1
dist/cursors/half-busy vendored Symbolic link
View file

@ -0,0 +1 @@
progress

1
dist/cursors/hand1 vendored Symbolic link
View file

@ -0,0 +1 @@
pointer

1
dist/cursors/hand2 vendored Symbolic link
View file

@ -0,0 +1 @@
pointer

BIN
dist/cursors/help vendored Normal file

Binary file not shown.

1
dist/cursors/ibeam vendored Symbolic link
View file

@ -0,0 +1 @@
text

BIN
dist/cursors/left-arrow vendored Normal file

Binary file not shown.

1
dist/cursors/left_ptr vendored Symbolic link
View file

@ -0,0 +1 @@
default

1
dist/cursors/left_ptr_help vendored Symbolic link
View file

@ -0,0 +1 @@
help

1
dist/cursors/left_ptr_watch vendored Symbolic link
View file

@ -0,0 +1 @@
progress

BIN
dist/cursors/left_side vendored Normal file

Binary file not shown.

1
dist/cursors/link vendored Symbolic link
View file

@ -0,0 +1 @@
alias

1
dist/cursors/ll_angle vendored Symbolic link
View file

@ -0,0 +1 @@
bottom_left_corner

1
dist/cursors/lr_angle vendored Symbolic link
View file

@ -0,0 +1 @@
bottom_right_corner

1
dist/cursors/move vendored Symbolic link
View file

@ -0,0 +1 @@
dnd-move

1
dist/cursors/n-resize vendored Symbolic link
View file

@ -0,0 +1 @@
size_ver

1
dist/cursors/ne-resize vendored Symbolic link
View file

@ -0,0 +1 @@
top_right_corner

1
dist/cursors/nesw-resize vendored Symbolic link
View file

@ -0,0 +1 @@
size_bdiag

BIN
dist/cursors/no-drop vendored Normal file

Binary file not shown.

BIN
dist/cursors/not-allowed vendored Normal file

Binary file not shown.

1
dist/cursors/nw-resize vendored Symbolic link
View file

@ -0,0 +1 @@
top_left_corner

1
dist/cursors/nwse-resize vendored Symbolic link
View file

@ -0,0 +1 @@
size_fdiag

BIN
dist/cursors/openhand vendored Normal file

Binary file not shown.

BIN
dist/cursors/pencil vendored Normal file

Binary file not shown.

BIN
dist/cursors/pirate vendored Normal file

Binary file not shown.

1
dist/cursors/plus vendored Symbolic link
View file

@ -0,0 +1 @@
cell

BIN
dist/cursors/pointer vendored Normal file

Binary file not shown.

1
dist/cursors/pointing_hand vendored Symbolic link
View file

@ -0,0 +1 @@
pointer

BIN
dist/cursors/progress vendored Normal file

Binary file not shown.

1
dist/cursors/question_arrow vendored Symbolic link
View file

@ -0,0 +1 @@
help

BIN
dist/cursors/right-arrow vendored Normal file

Binary file not shown.

BIN
dist/cursors/right_ptr vendored Normal file

Binary file not shown.

BIN
dist/cursors/right_side vendored Normal file

Binary file not shown.

BIN
dist/cursors/row-resize vendored Normal file

Binary file not shown.

1
dist/cursors/s-resize vendored Symbolic link
View file

@ -0,0 +1 @@
size_ver

1
dist/cursors/sb_h_double_arrow vendored Symbolic link
View file

@ -0,0 +1 @@
size_hor

1
dist/cursors/sb_v_double_arrow vendored Symbolic link
View file

@ -0,0 +1 @@
size_ver

1
dist/cursors/se-resize vendored Symbolic link
View file

@ -0,0 +1 @@
bottom_right_corner

1
dist/cursors/size_all vendored Symbolic link
View file

@ -0,0 +1 @@
fleur

BIN
dist/cursors/size_bdiag vendored Normal file

Binary file not shown.

BIN
dist/cursors/size_fdiag vendored Normal file

Binary file not shown.

BIN
dist/cursors/size_hor vendored Normal file

Binary file not shown.

BIN
dist/cursors/size_ver vendored Normal file

Binary file not shown.

1
dist/cursors/split_h vendored Symbolic link
View file

@ -0,0 +1 @@
col-resize

1
dist/cursors/split_v vendored Symbolic link
View file

@ -0,0 +1 @@
row-resize

1
dist/cursors/sw-resize vendored Symbolic link
View file

@ -0,0 +1 @@
bottom_left_corner

BIN
dist/cursors/text vendored Normal file

Binary file not shown.

BIN
dist/cursors/top_left_corner vendored Normal file

Binary file not shown.

BIN
dist/cursors/top_right_corner vendored Normal file

Binary file not shown.

BIN
dist/cursors/top_side vendored Normal file

Binary file not shown.

1
dist/cursors/ul_angle vendored Symbolic link
View file

@ -0,0 +1 @@
top_left_corner

Some files were not shown because too many files have changed in this diff Show more