diff --git a/install.sh b/install.sh index 49ec60c..e63c195 100755 --- a/install.sh +++ b/install.sh @@ -35,7 +35,7 @@ usage() { helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'" helpify "-b, --background" "[default|blank|IMAGE_PATH]" "Set gnome-shell background image" "Default is BigSur-like wallpaper" helpify "-m, --monterey" "" "Set to MacOS Monterey style" "" - helpify "-l, --libadwaita" "" "Install gtk-4.0 theme into config for libadwaita" "" + helpify "-l, --libadwaita" "" "Install gtk-4.0 files to gtk4.0 config folder for libadwaita" "Do not run this option with sudo !" helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style (stabled sidebar)" helpify "-HD, --highdefinition" "" "Set to High Definition size" "Default is laptop size" helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur" @@ -166,8 +166,12 @@ else echo; install_themes; echo; prompt -s "Done!" if [[ "${libadwaita}" == 'true' ]]; then - install_libadwaita - echo; prompt -w "Installed gtk-4.0 into config for libadwaita!" + if [[ "$UID" != '0' ]]; then + install_libadwaita + echo; prompt -w "Installed gtk-4.0 into config for libadwaita!" + else + echo; prompt -e "Do not run '--libadwaita' option with sudo!" + fi fi if (is_running "xfce4-session"); then