Fixed gnome-shell 44.0 issues

This commit is contained in:
vinceliuice
2023-04-11 22:38:51 +08:00
parent 2f85517351
commit 149d13f7c0
11 changed files with 417 additions and 14 deletions

View File

@@ -30,7 +30,9 @@ SIZE_VARIANTS=('' '-Compact')
if [[ "$(command -v gnome-shell)" ]]; then
gnome-shell --version
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
if [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
if [[ "${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"
@@ -39,7 +41,7 @@ if [[ "$(command -v gnome-shell)" ]]; then
fi
else
echo "'gnome-shell' not found, using styles for last gnome-shell version available."
GS_VERSION="42-0"
GS_VERSION="44-0"
fi
usage() {