Add bibata-cursor

This commit is contained in:
clsty
2024-02-25 11:27:19 +08:00
parent bf852d7047
commit 96c9e98b80
3 changed files with 22 additions and 1 deletions
+8
View File
@@ -119,6 +119,14 @@ if $(test -d /usr/local/share/icons/OneUI); then
else ask_OneUI=true
fi
if $ask_OneUI;then showfun install-OneUI;v install-OneUI;fi
if $(test -d /usr/local/share/icons/Bibata-Modern-Classic); then
echo -e "\e[33m[$0]: Cursor theme \"Bibata-Modern-Classic\" already exists, no need to install.\e[0m"
echo -e "\e[34mYou can reinstall it in order to update to the latest version anyway.\e[0m"
ask_bibata=$ask
else ask_bibata=true
fi
if $ask_bibata;then showfun install-bibata;v install-bibata;fi
#####################################################################################
printf "\e[36m[$0]: 3. Copying\e[97m\n"
+1 -1
View File
@@ -2,7 +2,7 @@
### PKGs on same line will be send to `yay` together, unless `-f` is specified.
### Basic
coreutils cliphist curl fuzzel rsync wget ripgrep gojq npm meson typescript gjs dart-sass
coreutils cliphist curl fuzzel rsync wget ripgrep gojq npm meson typescript gjs dart-sass axel
### Python
# Add `python-setuptools-scm` and `python-wheel` explicitly to fix #197
+13
View File
@@ -73,3 +73,16 @@ install-OneUI (){
x sudo cp -r OneUI-light /usr/local/share/icons
x cd $base
}
install-bibata (){
x mkdir -p $base/cache/bibata-cursor
x cd $base/cache/bibata-cursor
name="Bibata-Modern-Classic"
file="$name.tar.xz"
# Use axel because `curl -O` always downloads a file with 0 byte size, idk why
x axel https://github.com/ful1e5/Bibata_Cursor/releases/latest/download/$file
tar -xf $file
x sudo mkdir -p /usr/local/share/icons
x sudo cp -r $name /usr/local/share/icons
x cd $base
}