Fixed gnome-shell 48 issues

This commit is contained in:
vinceliuice
2025-04-11 14:44:01 +08:00
parent 967cae772c
commit 7538163d37
13 changed files with 713 additions and 44 deletions

View File

@@ -37,23 +37,17 @@ SIZE_VARIANTS=('' '-Compact')
if [[ "$(command -v gnome-shell)" ]]; then
echo && gnome-shell --version
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
if [[ "${SHELL_VERSION:-}" -ge "47" ]]; then
GS_VERSION="47-0"
elif [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
GS_VERSION="46-0"
elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
GS_VERSION="44-0"
elif [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
GS_VERSION="42-0"
elif [[ "${SHELL_VERSION:-}" -ge "40" ]]; then
GS_VERSION="40-0"
if [[ "${SHELL_VERSION:-}" -ge "40" ]]; then
GS_VERSION="${SHELL_VERSION}-0"
else
GS_VERSION="3-28"
fi
else
echo "'gnome-shell' not found, using styles for last gnome-shell version available."
GS_VERSION="47-0"
GS_VERSION="48-0"
fi
usage() {