diff --git a/4k/Sonoma-dark.jpg b/4k/Sonoma-dark.jpg new file mode 100644 index 0000000..a64b9b1 Binary files /dev/null and b/4k/Sonoma-dark.jpg differ diff --git a/4k/Sonoma-light.jpg b/4k/Sonoma-light.jpg new file mode 100644 index 0000000..9737829 Binary files /dev/null and b/4k/Sonoma-light.jpg differ diff --git a/install-gnome-backgrounds.sh b/install-gnome-backgrounds.sh index 03f3321..c15c54d 100755 --- a/install-gnome-backgrounds.sh +++ b/install-gnome-backgrounds.sh @@ -7,7 +7,7 @@ REPO_DIR="$(cd "$(dirname "$0")" && pwd)" BACKGROUND_DIR="/usr/share/backgrounds" PROPERTIES_DIR="/usr/share/gnome-background-properties" -THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura') +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura' 'Sonoma') SCREEN_VARIANTS=('1080p' '2k' '4k') #COLORS @@ -44,7 +44,7 @@ usage() { Usage: $0 [OPTION]... OPTIONS: - -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (Default: All variants)s) + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura|sonoma] (Default: All variants)s) -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 4k) -u, --uninstall Uninstall wallpappers -h, --help Show help @@ -64,7 +64,7 @@ install() { [[ -f ${PROPERTIES_DIR}/${theme}.xml ]] && rm -rf ${PROPERTIES_DIR}/${theme}.xml mkdir -p ${BACKGROUND_DIR}/${theme} - if [[ "${theme}" == 'Ventura' ]]; then + if [[ "${theme}" == 'Ventura' || "${theme}" == 'Sonoma' ]]; then cp -a --no-preserve=ownership ${REPO_DIR}/4k/${theme}{'-dark','-light'}.jpg ${BACKGROUND_DIR}/${theme} else cp -a --no-preserve=ownership ${REPO_DIR}/${screen}/${theme}{'','-morning','-light'}.jpg ${BACKGROUND_DIR}/${theme} @@ -90,7 +90,7 @@ install_nord_wallpaper() { prompt -w "Install Nord version in ${BACKGROUND_DIR}... \n" mkdir -p ${BACKGROUND_DIR}/Wallpaper-nord cp -a --no-preserve=ownership ${REPO_DIR}/Wallpaper-nord/{'Mojave-nord','WhiteSur-nord'}{'-dark','-light'}.png ${BACKGROUND_DIR}/Wallpaper-nord - cp -a --no-preserve=ownership ${REPO_DIR}/xml-files/gnome-background-properties/Mojave.xml ${PROPERTIES_DIR} + cp -a --no-preserve=ownership ${REPO_DIR}/xml-files/gnome-background-properties/Mojave-nord.xml ${PROPERTIES_DIR} } while [[ $# -gt 0 ]]; do @@ -115,6 +115,10 @@ while [[ $# -gt 0 ]]; do themes+=("${THEME_VARIANTS[2]}") shift 1 ;; + sonoma) + themes+=("${THEME_VARIANTS[3]}") + shift 1 + ;; -*) break ;; diff --git a/install-wallpapers.sh b/install-wallpapers.sh index 3f59b97..126d483 100755 --- a/install-wallpapers.sh +++ b/install-wallpapers.sh @@ -3,7 +3,7 @@ REPO_DIR="$(cd "$(dirname "$0")" && pwd)" WALLPAPER_DIR="$HOME/.local/share/backgrounds" -THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura') +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura' 'Sonoma') COLOR_VARIANTS=('' '-light' '-dark') SCREEN_VARIANTS=('1080p' '2k' '4k') @@ -61,13 +61,13 @@ install() { prompt -i "\n * Install ${theme}${color} in ${WALLPAPER_DIR}... " mkdir -p "${WALLPAPER_DIR}" - if [[ "${theme}" == 'Ventura' ]]; then + if [[ "${theme}" == 'Ventura' || "${theme}" == 'Sonoma' ]]; then [[ "${color}" == '' ]] && local color='-light' fi [[ -f ${WALLPAPER_DIR}/${theme}${color}.jpg ]] && rm -rf ${WALLPAPER_DIR}/${theme}${color}.jpg - if [[ "${theme}" == 'Ventura' ]]; then + if [[ "${theme}" == 'Ventura' || "${theme}" == 'Sonoma' ]]; then cp -a --no-preserve=ownership ${REPO_DIR}/4k/${theme}${color}.jpg ${WALLPAPER_DIR} else cp -a --no-preserve=ownership ${REPO_DIR}/${screen}/${theme}${color}.jpg ${WALLPAPER_DIR} @@ -114,7 +114,11 @@ while [[ $# -gt 0 ]]; do shift 1 ;; ventura) - themes+=("${THEME_VARIANTS[1]}") + themes+=("${THEME_VARIANTS[2]}") + shift 1 + ;; + sonoma) + themes+=("${THEME_VARIANTS[3]}") shift 1 ;; -*) diff --git a/xml-files/gnome-background-properties/Mojave.xml b/xml-files/gnome-background-properties/Mojave-nord.xml similarity index 100% rename from xml-files/gnome-background-properties/Mojave.xml rename to xml-files/gnome-background-properties/Mojave-nord.xml diff --git a/xml-files/gnome-background-properties/Sonoma.xml b/xml-files/gnome-background-properties/Sonoma.xml new file mode 100644 index 0000000..0b0e29c --- /dev/null +++ b/xml-files/gnome-background-properties/Sonoma.xml @@ -0,0 +1,22 @@ + + + + + Sonoma Background + /usr/share/backgrounds/Sonoma/Sonoma-light.jpg + /usr/share/backgrounds/Sonoma/Sonoma-dark.jpg + zoom + solid + #51a2da + #294172 + + + + Sonoma Time of Day + /usr/share/backgrounds/Sonoma/Sonoma-timed.xml + zoom + solid + #ffffff + #000000 + + diff --git a/xml-files/timed-xml-files/Sonoma-timed.xml b/xml-files/timed-xml-files/Sonoma-timed.xml new file mode 100644 index 0000000..e195d91 --- /dev/null +++ b/xml-files/timed-xml-files/Sonoma-timed.xml @@ -0,0 +1,51 @@ + + + 2011 + 11 + 24 + 7 + 00 + 00 + + + + + + +3600.0 +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg + + + + +18000.0 +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg + + + + +18000.0 +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg + + + + +21600.0 +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg +/usr/share/backgrounds/Sonoma/Sonoma-dark.jpg + + + + +18000.0 +/usr/share/backgrounds/Sonoma/Sonoma-dark.jpg + + + + +7200.0 +/usr/share/backgrounds/Sonoma/Sonoma-dark.jpg +/usr/share/backgrounds/Sonoma/Sonoma-light.jpg + +