mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-20 10:15:11 -04:00
change delay to 40
This commit is contained in:
parent
0f4f2cb7ce
commit
2fce272ad5
1 changed files with 14 additions and 6 deletions
16
tweak.sh
16
tweak.sh
|
@ -4,9 +4,9 @@ animate_fix(){
|
|||
cursor=$1
|
||||
file=$2
|
||||
|
||||
path=./$cursor/bitmaps/$file.in
|
||||
#sort -k 4 ./move/left_ptr_watch.in
|
||||
mv -f $path $path.bak
|
||||
path="./$cursor/bitmaps/$file.in"
|
||||
sort -k 4 -o "$path" "$path"
|
||||
mv -f "$path" "$path.bak"
|
||||
|
||||
#j for total size 24,28,32,40,48,56,64,72,80,88,96 = 11
|
||||
for j in {1..11}
|
||||
|
@ -14,22 +14,30 @@ animate_fix(){
|
|||
for i in {1..60}
|
||||
do
|
||||
line=`sed -n '1~60'p $path.bak | sed -n "$j"p`
|
||||
# echo "$line"
|
||||
number=`echo $i | awk '{ printf "%04i\n", $0 }'`
|
||||
# echo "$number"
|
||||
line=${line/${file}_0001.png/${file}_${number}.png}
|
||||
# echo "$line"
|
||||
echo "$line" >> $path
|
||||
|
||||
#echo "$line"
|
||||
done
|
||||
done
|
||||
|
||||
fixed_line=`sed 's/[0-9] [0-9]*$/25/' $path`
|
||||
fixed_line=`sed 's/[0-9][0-9]*$/40/' $path`
|
||||
echo "$fixed_line" > $path
|
||||
|
||||
rm -rf $path.bak
|
||||
}
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
animate_fix "$1" "left_ptr_watch"
|
||||
animate_fix "$1" "watch"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
#if script generate error or success
|
||||
if [ $? -ne 0 ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue