update
This commit is contained in:
parent
9e01be8cc5
commit
be0ceaf130
@ -17,7 +17,7 @@ Run `./tweaks.sh -f`
|
|||||||
|
|
||||||
if you want to use `Monterey` style then:
|
if you want to use `Monterey` style then:
|
||||||
|
|
||||||
Run `./tweaks.sh -f -m`
|
Run `./tweaks.sh -f monterey`
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
21
tweaks.sh
21
tweaks.sh
@ -19,8 +19,7 @@ usage() {
|
|||||||
# Please specify their default value manually, some of them are come from _variables.scss
|
# Please specify their default value manually, some of them are come from _variables.scss
|
||||||
# You also have to check and update them regurally
|
# You also have to check and update them regurally
|
||||||
helpify_title
|
helpify_title
|
||||||
helpify "-f, --firefox" "" "Install '${THEME_NAME}' theme for Firefox and connect it to the current Firefox profiles" ""
|
helpify "-f, --firefox" "[default|monterey]" "Install '${THEME_NAME}|Monterey' theme for Firefox and connect it to the current Firefox profiles" "Default is ${THEME_NAME}"
|
||||||
helpify "-m, --monterey" "( Run this with -f )" "Install 'Monterey' theme for Firefox and connect it to the current Firefox profiles" ""
|
|
||||||
helpify "-e, --edit-firefox" "" "Edit '${THEME_NAME}' theme for Firefox settings and also connect the theme to the current Firefox profiles" ""
|
helpify "-e, --edit-firefox" "" "Edit '${THEME_NAME}' theme for Firefox settings and also connect the theme to the current Firefox profiles" ""
|
||||||
helpify "-F, --flatpak" "" "Connect '${THEME_NAME}' theme to Flatpak" ""
|
helpify "-F, --flatpak" "" "Connect '${THEME_NAME}' theme to Flatpak" ""
|
||||||
helpify "-s, --snap" "" "Connect '${THEME_NAME}' theme the currently installed snap apps" ""
|
helpify "-s, --snap" "" "Connect '${THEME_NAME}' theme the currently installed snap apps" ""
|
||||||
@ -65,17 +64,27 @@ while [[ $# -gt 0 ]]; do
|
|||||||
full_sudo "${1}"; silent_mode='true'; shift ;;
|
full_sudo "${1}"; silent_mode='true'; shift ;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
need_help="true"; shift ;;
|
need_help="true"; shift ;;
|
||||||
-f|--firefox|-e|--edit-firefox|-m|--monterey)
|
-f|--firefox|-e|--edit-firefox)
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-f|--firefox)
|
-f|--firefox)
|
||||||
firefox="true" ;;
|
firefox="true" ;;
|
||||||
-e|--edit-firefox)
|
-e|--edit-firefox)
|
||||||
edit_firefox="true" ;;
|
edit_firefox="true" ;;
|
||||||
-m|--monterey)
|
|
||||||
monterey="true"
|
|
||||||
name="Monterey" ;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
for variant in "${@}"; do
|
||||||
|
case "${variant}" in
|
||||||
|
default)
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
monterey)
|
||||||
|
monterey="true"
|
||||||
|
name="Monterey"
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
if ! has_command firefox && ! has_flatpak_app org.mozilla.firefox && ! has_snap_app firefox; then
|
if ! has_command firefox && ! has_flatpak_app org.mozilla.firefox && ! has_snap_app firefox; then
|
||||||
prompt -e "'${1}' ERROR: There's no Firefox installed in your system"
|
prompt -e "'${1}' ERROR: There's no Firefox installed in your system"
|
||||||
has_any_error="true"
|
has_any_error="true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user