Update install.sh

This commit is contained in:
vinceliuice 2024-08-31 17:02:33 +08:00
parent 9b1032cb42
commit 785a063f8e

View File

@ -41,8 +41,8 @@ usage() {
helpify " 2. -b, -background" "[default|blank|IMAGE_PATH]" " Set gnome-shell background image" "Default is BigSur-like wallpaper"
helpify " 3. -o, -opacity" "[$(IFS='|'; echo "${PANEL_OPACITY_VARIANTS[*]}")]" " Set gnome-shell panel transparency" "Default is 15%"
helpify " 4. -h, -height" "[$(IFS='|'; echo "${PANEL_SIZE_VARIANTS[*]}")]" " Set gnome-shell panel height size" "Default is 32px"
helpify " 5. -n, --normal" "" " Set gnome-shell show apps button style to normal" "Default is BigSur"
helpify " 6. -s, --smaller" "" " Set gnome-shell font size to smaller (10pt)" "Default is 11pt"
helpify " 5. -n, -normal" "" " Set gnome-shell show apps button style to normal" "Default is BigSur"
helpify " 6. -s, -smaller" "" " Set gnome-shell font size to smaller (10pt)" "Default is 11pt"
helpify "--round, --roundedmaxwindow" "" " Set maximized window to rounded" "Default is square"
helpify "--right, --rightplacement" "" " Set Nautilus title button placement to right" "Default is left"
@ -97,18 +97,18 @@ while [[ $# -gt 0 ]]; do
shift
for variant in "${@}"; do
case "${variant}" in
-i|--icon)
-i|-icon)
activities_icon="true";
check_param "${1}" "${1}" "${2}" "must" "must" "must" && shift 2 || shift ;;
-b|--background)
-b|-background)
check_param "${1}" "${1}" "${2}" "must" "must" "must" "false" && shift 2 || shift ;;
-o|--opacity)
-o|-opacity)
check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;;
-h|--height)
-h|-height)
check_param "${1}" "${1}" "${2}" "optional" "optional" "optional" && shift 2 || shift ;;
-n|--normal)
-n|-normal)
showapps_normal="true"; shift ;;
-s|--smaller)
-s|-smaller)
smaller_font="true"; shift ;;
esac
done