mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-29 22:35:31 -04:00
Updated
This commit is contained in:
parent
9673108983
commit
04d6e8a242
1 changed files with 113 additions and 22 deletions
129
build.sh
129
build.sh
|
@ -13,6 +13,12 @@ RAWSVGS_Bibata_Light="src/Bibata_Ice/svgs"
|
||||||
INDEX_Bibata_Light="src/Bibata_Ice/cursor.theme"
|
INDEX_Bibata_Light="src/Bibata_Ice/cursor.theme"
|
||||||
INDEX1_Bibata_Light="src/Bibata_Ice/index.theme"
|
INDEX1_Bibata_Light="src/Bibata_Ice/index.theme"
|
||||||
|
|
||||||
|
# Bibata Amber
|
||||||
|
|
||||||
|
RAWSVGS_Bibata_Amber="src/Bibata_Amber/svgs"
|
||||||
|
INDEX_Bibata_Amber="src/Bibata_Amber/cursor.theme"
|
||||||
|
INDEX1_Bibata_Amber="src/Bibata_Amber/index.theme"
|
||||||
|
|
||||||
ALIASES="src/cursorList"
|
ALIASES="src/cursorList"
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,21 +38,46 @@ echo -e "Checking Requirements... DONE"
|
||||||
|
|
||||||
|
|
||||||
echo -ne "Making Folders... $BASENAME\\r"
|
echo -ne "Making Folders... $BASENAME\\r"
|
||||||
DIR2X_Bibata="build/Bibata_Oil/x2"
|
DIR4X_Bibata="build/Bibata_Oil/48x48"
|
||||||
DIR1X_Bibata="build/Bibata_Oil/x1"
|
DIR3X_Bibata="build/Bibata_Oil/32x32"
|
||||||
DIR2X_Bibata_Light="build/Bibata_Ice/x2"
|
DIR2X_Bibata="build/Bibata_Oil/28x28"
|
||||||
DIR1X_Bibata_Light="build/Bibata_Ice/x1"
|
DIR1X_Bibata="build/Bibata_Oil/24x24"
|
||||||
|
|
||||||
|
DIR4X_Bibata_Light="build/Bibata_Ice/48x48"
|
||||||
|
DIR3X_Bibata_Light="build/Bibata_Ice/32x32"
|
||||||
|
DIR2X_Bibata_Light="build/Bibata_Ice/28x28"
|
||||||
|
DIR1X_Bibata_Light="build/Bibata_Ice/24x24"
|
||||||
|
|
||||||
|
DIR4X_Bibata_Amber="build/Bibata_Amber/48x48"
|
||||||
|
DIR3X_Bibata_Amber="build/Bibata_Amber/32x32"
|
||||||
|
DIR2X_Bibata_Amber="build/Bibata_Amber/28x28"
|
||||||
|
DIR1X_Bibata_Amber="build/Bibata_Amber/24x24"
|
||||||
|
|
||||||
|
|
||||||
OUTPUT_Bibata="$(grep --only-matching --perl-regex "(?<=Name\=).*$" $INDEX_Bibata)"
|
OUTPUT_Bibata="$(grep --only-matching --perl-regex "(?<=Name\=).*$" $INDEX_Bibata)"
|
||||||
OUTPUT_Bibata=${OUTPUT_Bibata// /_}
|
OUTPUT_Bibata=${OUTPUT_Bibata// /_}
|
||||||
OUTPUT_Bibata_Light="$(grep --only-matching --perl-regex "(?<=Name\=).*$" $INDEX_Bibata_Light)"
|
OUTPUT_Bibata_Light="$(grep --only-matching --perl-regex "(?<=Name\=).*$" $INDEX_Bibata_Light)"
|
||||||
OUTPUT_Bibata_Light=${OUTPUT_Bibata_Light// /_}
|
OUTPUT_Bibata_Light=${OUTPUT_Bibata_Light// /_}
|
||||||
|
OUTPUT_Bibata_Amber="$(grep --only-matching --perl-regex "(?<=Name\=).*$" $INDEX_Bibata_Amber)"
|
||||||
|
OUTPUT_Bibata_Amber=${OUTPUT_Bibata_Amber// /_}
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p "$DIR4X_Bibata"
|
||||||
|
mkdir -p "$DIR3X_Bibata"
|
||||||
mkdir -p "$DIR2X_Bibata"
|
mkdir -p "$DIR2X_Bibata"
|
||||||
mkdir -p "$DIR1X_Bibata"
|
mkdir -p "$DIR1X_Bibata"
|
||||||
|
mkdir -p "$DIR4X_Bibata_Light"
|
||||||
|
mkdir -p "$DIR3X_Bibata_Light"
|
||||||
mkdir -p "$DIR2X_Bibata_Light"
|
mkdir -p "$DIR2X_Bibata_Light"
|
||||||
mkdir -p "$DIR1X_Bibata_Light"
|
mkdir -p "$DIR1X_Bibata_Light"
|
||||||
|
mkdir -p "$DIR4X_Bibata_Amber"
|
||||||
|
mkdir -p "$DIR3X_Bibata_Amber"
|
||||||
|
mkdir -p "$DIR2X_Bibata_Amber"
|
||||||
|
mkdir -p "$DIR1X_Bibata_Amber"
|
||||||
|
|
||||||
mkdir -p "$OUTPUT_Bibata/cursors"
|
mkdir -p "$OUTPUT_Bibata/cursors"
|
||||||
mkdir -p "$OUTPUT_Bibata_Light/cursors"
|
mkdir -p "$OUTPUT_Bibata_Light/cursors"
|
||||||
|
mkdir -p "$OUTPUT_Bibata_Amber/cursors"
|
||||||
echo 'Making Folders... DONE';
|
echo 'Making Folders... DONE';
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,10 +88,21 @@ for CUR in src/config/*.cursor; do
|
||||||
|
|
||||||
echo -ne "\033[0KGenerating simple cursor pixmaps... $BASENAME\\r"
|
echo -ne "\033[0KGenerating simple cursor pixmaps... $BASENAME\\r"
|
||||||
|
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR1X_Bibata/$BASENAME.png" > /dev/null
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR1X_Bibata/$BASENAME.png" > /dev/null
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR2X_Bibata/$BASENAME.png" > /dev/null
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR2X_Bibata/$BASENAME.png" > /dev/null
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR1X_Bibata_Light/$BASENAME.png" > /dev/null
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR3X_Bibata/$BASENAME.png" > /dev/null
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR2X_Bibata_Light/$BASENAME.png" > /dev/null
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata/"$BASENAME".svg -e "$DIR4X_Bibata/$BASENAME.png" > /dev/null
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR1X_Bibata_Light/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR2X_Bibata_Light/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR3X_Bibata_Light/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Light/"$BASENAME".svg -e "$DIR4X_Bibata_Light/$BASENAME.png" > /dev/null
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Amber/"$BASENAME".svg -e "$DIR1X_Bibata_Amber/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Amber/"$BASENAME".svg -e "$DIR2X_Bibata_Amber/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Amber/"$BASENAME".svg -e "$DIR3X_Bibata_Amber/$BASENAME.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Amber/"$BASENAME".svg -e "$DIR4X_Bibata_Amber/$BASENAME.png" > /dev/null
|
||||||
|
|
||||||
done
|
done
|
||||||
echo -e "\033[0KGenerating simple cursor pixmaps... DONE"
|
echo -e "\033[0KGenerating simple cursor pixmaps... DONE"
|
||||||
|
|
||||||
|
@ -68,20 +110,55 @@ echo -e "\033[0KGenerating simple cursor pixmaps... DONE"
|
||||||
|
|
||||||
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
||||||
do
|
do
|
||||||
echo -ne "\033[0KGenerating animated cursor pixmaps... $i / 45 \\r"
|
echo -ne "\033[0KGenerating animated cursor pixmaps For Bibata Oil... $i / 45 \\r"
|
||||||
|
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR1X_Bibata/progress-$i.png" > /dev/null
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR1X_Bibata/progress-$i.png" > /dev/null
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR2X_Bibata/progress-$i.png" > /dev/null
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR2X_Bibata/progress-$i.png" > /dev/null
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR1X_Bibata_Light/progress-$i.png" > /dev/null
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR3X_Bibata/progress-$i.png" > /dev/null
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR2X_Bibata_Light/progress-$i.png" > /dev/null
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata/progress-$i.svg -e "$DIR4X_Bibata/progress-$i.png" > /dev/null
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR1X_Bibata/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR2X_Bibata/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR3X_Bibata/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR4X_Bibata/wait-$i.png" > /dev/null
|
||||||
|
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR1X_Bibata/wait-$i.png" > /dev/null
|
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata/wait-$i.svg -e "$DIR2X_Bibata/wait-$i.png" > /dev/null
|
|
||||||
inkscape -w 33 -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR1X_Bibata_Light/wait-$i.png" > /dev/null
|
|
||||||
inkscape -w 66 -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR2X_Bibata_Light/wait-$i.png" > /dev/null
|
|
||||||
done
|
done
|
||||||
echo -e "\033[0KGenerating animated cursor pixmaps... DONE"
|
echo -e "\033[0KGenerating animated cursor pixmaps For Bibata Oil... DONE"
|
||||||
|
|
||||||
|
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
||||||
|
do
|
||||||
|
echo -ne "\033[0KGenerating animated cursor pixmaps For Bibata Ice... $i / 45 \\r"
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR1X_Bibata_Light/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR2X_Bibata_Light/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR3X_Bibata_Light/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Light/progress-$i.svg -e "$DIR4X_Bibata_Light/progress-$i.png" > /dev/null
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR1X_Bibata_Light/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR2X_Bibata_Light/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR3X_Bibata_Light/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Light/wait-$i.svg -e "$DIR4X_Bibata_Light/wait-$i.png" > /dev/null
|
||||||
|
|
||||||
|
done
|
||||||
|
echo -e "\033[0KGenerating animated cursor pixmaps For Bibata Ice... DONE"
|
||||||
|
|
||||||
|
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
||||||
|
do
|
||||||
|
echo -ne "\033[0KGenerating animated cursor pixmaps For Bibata Amber... $i / 45 \\r"
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Amber/progress-$i.svg -e "$DIR1X_Bibata_Amber/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Amber/progress-$i.svg -e "$DIR2X_Bibata_Amber/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Amber/progress-$i.svg -e "$DIR3X_Bibata_Amber/progress-$i.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Amber/progress-$i.svg -e "$DIR4X_Bibata_Amber/progress-$i.png" > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
inkscape -w 24 -h 24 --without-gui -f $RAWSVGS_Bibata_Amber/wait-$i.svg -e "$DIR1X_Bibata_Amber/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 28 -h 28 --without-gui -f $RAWSVGS_Bibata_Amber/wait-$i.svg -e "$DIR2X_Bibata_Amber/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 32 -h 32 --without-gui -f $RAWSVGS_Bibata_Amber/wait-$i.svg -e "$DIR3X_Bibata_Amber/wait-$i.png" > /dev/null
|
||||||
|
inkscape -w 48 -h 48 --without-gui -f $RAWSVGS_Bibata_Amber/wait-$i.svg -e "$DIR4X_Bibata_Amber/wait-$i.png" > /dev/null
|
||||||
|
|
||||||
|
done
|
||||||
|
echo -e "\033[0KGenerating animated cursor pixmaps For Bibata Amber... DONE"
|
||||||
|
|
||||||
|
|
||||||
echo -ne "Generating cursor theme...\\r"
|
echo -ne "Generating cursor theme...\\r"
|
||||||
|
@ -102,6 +179,12 @@ for CUR in src/config/*.cursor; do
|
||||||
echo "FAIL: $CUR $ERR"
|
echo "FAIL: $CUR $ERR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ERR="$( xcursorgen -p build/Bibata_Amber "$CUR" "$OUTPUT_Bibata_Amber/cursors/$BASENAME" 2>&1 )"
|
||||||
|
|
||||||
|
if [[ "$?" -ne "0" ]]; then
|
||||||
|
echo "FAIL: $CUR $ERR"
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
echo -e "Generating cursor theme... DONE"
|
echo -e "Generating cursor theme... DONE"
|
||||||
|
|
||||||
|
@ -121,6 +204,11 @@ while read -r ALIAS ; do
|
||||||
fi
|
fi
|
||||||
ln -s "$TO" "$OUTPUT_Bibata_Light/cursors/$FROM"
|
ln -s "$TO" "$OUTPUT_Bibata_Light/cursors/$FROM"
|
||||||
|
|
||||||
|
if [ -e "$OUTPUT_Bibata_Amber/cursors/$FROM" ] ; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
ln -s "$TO" "$OUTPUT_Bibata_Amber/cursors/$FROM"
|
||||||
|
|
||||||
done < $ALIASES
|
done < $ALIASES
|
||||||
echo -e "\033[0KGenerating shortcuts... DONE"
|
echo -e "\033[0KGenerating shortcuts... DONE"
|
||||||
|
|
||||||
|
@ -136,6 +224,10 @@ echo -ne "Copying Theme Index...\\r"
|
||||||
cp $INDEX_Bibata_Light "$OUTPUT_Bibata_Light/cursor.theme"
|
cp $INDEX_Bibata_Light "$OUTPUT_Bibata_Light/cursor.theme"
|
||||||
cp $INDEX1_Bibata_Light "$OUTPUT_Bibata_Light/index.theme"
|
cp $INDEX1_Bibata_Light "$OUTPUT_Bibata_Light/index.theme"
|
||||||
fi
|
fi
|
||||||
|
if ! [ -e "$OUTPUT_Bibata_Amber/$INDEX_Bibata_Amber" ] ; then
|
||||||
|
cp $INDEX_Bibata_Amber "$OUTPUT_Bibata_Amber/cursor.theme"
|
||||||
|
cp $INDEX1_Bibata_Amber "$OUTPUT_Bibata_Amber/index.theme"
|
||||||
|
fi
|
||||||
echo -e "\033[0KCopying Theme Index... DONE"
|
echo -e "\033[0KCopying Theme Index... DONE"
|
||||||
|
|
||||||
|
|
||||||
|
@ -166,4 +258,3 @@ show_command "\t sudo ./Installer_Bibata.sh\n"
|
||||||
exit
|
exit
|
||||||
|
|
||||||
echo "COMPLETE!"
|
echo "COMPLETE!"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue