diff --git a/install.sh b/install.sh index 21649bdf1..d09f97b82 100755 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/scriptdata/dependencies.conf b/scriptdata/dependencies.conf index 60244e33a..129dd260b 100644 --- a/scriptdata/dependencies.conf +++ b/scriptdata/dependencies.conf @@ -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 diff --git a/scriptdata/installers b/scriptdata/installers index 8e707b29f..db3b29e88 100644 --- a/scriptdata/installers +++ b/scriptdata/installers @@ -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 +}