Fixed #242
This commit is contained in:
parent
556fa9af5f
commit
014b59bf1d
2 changed files with 24 additions and 17 deletions
|
@ -34,7 +34,8 @@ usage() {
|
||||||
helpify "-s, --size" "[$(IFS='|'; echo "${SIDEBAR_SIZE_VARIANTS[*]}")]" "Set Nautilus sidebar minimum width" "Default is 200px"
|
helpify "-s, --size" "[$(IFS='|'; echo "${SIDEBAR_SIZE_VARIANTS[*]}")]" "Set Nautilus sidebar minimum width" "Default is 200px"
|
||||||
helpify "-i, --icon" "[$(IFS='|'; echo "${ICON_VARIANTS[*]}")]" "Set 'Activities' icon" "Default is 'standard'"
|
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 "-b, --background" "[default|blank|IMAGE_PATH]" "Set gnome-shell background image" "Default is BigSur-like wallpaper"
|
||||||
helpify "-N, --nautilus-style" "[$(IFS='|'; echo "${NAUTILUS_STYLE_VARIANTS[*]}")]" "Set Nautilus style" "Default is BigSur-like style"
|
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"
|
||||||
helpify "--round, --roundedmaxwindow" "" "Set maximized window to rounded" "Default is square"
|
helpify "--round, --roundedmaxwindow" "" "Set maximized window to rounded" "Default is square"
|
||||||
helpify "--right, --rightplacement" "" "Set Nautilus titlebutton placement style to right" "Default is left"
|
helpify "--right, --rightplacement" "" "Set Nautilus titlebutton placement style to right" "Default is left"
|
||||||
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
|
helpify "--normal, --normalshowapps" "" "Set gnome-shell show apps button style to normal" "Default is bigsur"
|
||||||
|
@ -71,6 +72,8 @@ while [[ $# -gt 0 ]]; do
|
||||||
right_placement="true"; shift ;;
|
right_placement="true"; shift ;;
|
||||||
--round|--roundedmaxwindow)
|
--round|--roundedmaxwindow)
|
||||||
max_round="true"; shift ;;
|
max_round="true"; shift ;;
|
||||||
|
-HD|--highdefinition)
|
||||||
|
compact="false"; shift ;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
need_help="true"; shift ;;
|
need_help="true"; shift ;;
|
||||||
# Parameters that require value, single use
|
# Parameters that require value, single use
|
||||||
|
|
|
@ -580,39 +580,43 @@ customize_theme() {
|
||||||
|
|
||||||
# Change gnome-shell panel transparency
|
# Change gnome-shell panel transparency
|
||||||
if [[ "${panel_opacity}" != 'default' ]]; then
|
if [[ "${panel_opacity}" != 'default' ]]; then
|
||||||
prompt -w "Changing panel transparency ..."
|
prompt -s "Changing panel transparency ..."
|
||||||
sed $SED_OPT "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$panel_opacity/s/0.15/0.${panel_opacity}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change gnome-shell show apps button style
|
# Change gnome-shell show apps button style
|
||||||
if [[ "${showapps_normal}" == 'true' ]]; then
|
if [[ "${showapps_normal}" == 'true' ]]; then
|
||||||
prompt -w "Changing gnome-shell show apps button style ..."
|
prompt -s "Changing gnome-shell show apps button style ..."
|
||||||
sed $SED_OPT "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$showapps_button/s/bigsur/normal/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change Nautilus sidarbar size
|
# Change Nautilus sidarbar size
|
||||||
if [[ "${sidebar_size}" != 'default' ]]; then
|
if [[ "${sidebar_size}" != 'default' ]]; then
|
||||||
prompt -w "Changing Nautilus sidebar size ..."
|
prompt -s "Changing Nautilus sidebar size ..."
|
||||||
sed $SED_OPT "/\$sidebar_size/s/200px/${sidebar_size}px/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$sidebar_size/s/200px/${sidebar_size}px/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change Nautilus style
|
# Change Nautilus style
|
||||||
if [[ "${nautilus_style}" != 'stable' ]]; then
|
if [[ "${nautilus_style}" != 'stable' ]]; then
|
||||||
prompt -w "Changing Nautilus style ..."
|
prompt -s "Changing Nautilus style ..."
|
||||||
sed $SED_OPT "/\$nautilus_style/s/stable/${nautilus_style}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$nautilus_style/s/stable/${nautilus_style}/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change Nautilus titlebutton placement style
|
# Change Nautilus titlebutton placement style
|
||||||
if [[ "${right_placement}" == 'true' ]]; then
|
if [[ "${right_placement}" == 'true' ]]; then
|
||||||
prompt -w "Changing Nautilus titlebutton placement style ..."
|
prompt -s "Changing Nautilus titlebutton placement style ..."
|
||||||
sed $SED_OPT "/\$placement/s/left/right/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$placement/s/left/right/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change maximized window radius
|
# Change maximized window radius
|
||||||
if [[ "${max_round}" == 'true' ]]; then
|
if [[ "${max_round}" == 'true' ]]; then
|
||||||
prompt -w "Changing maximized window style ..."
|
prompt -s "Changing maximized window style ..."
|
||||||
sed $SED_OPT "/\$max_window_style/s/square/round/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
sed $SED_OPT "/\$max_window_style/s/square/round/" "${THEME_SRC_DIR}/sass/_theme-options-temp.scss"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${compact}" == 'false' ]]; then
|
||||||
|
prompt -s "Changing Definition mode to HD (Bigger font, Bigger size) ..."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#-----------------------------------DIALOGS------------------------------------#
|
#-----------------------------------DIALOGS------------------------------------#
|
||||||
|
|
Loading…
Reference in a new issue