diff --git a/1080p/Monterey-dark.png b/1080p/Monterey-dark.png deleted file mode 100644 index f74530d..0000000 Binary files a/1080p/Monterey-dark.png and /dev/null differ diff --git a/1080p/Monterey-light.png b/1080p/Monterey-light.png deleted file mode 100644 index 25b5dc3..0000000 Binary files a/1080p/Monterey-light.png and /dev/null differ diff --git a/1080p/Monterey-morning.png b/1080p/Monterey-morning.png deleted file mode 100644 index b99e577..0000000 Binary files a/1080p/Monterey-morning.png and /dev/null differ diff --git a/1080p/Monterey.png b/1080p/Monterey.png deleted file mode 100644 index 49ed16b..0000000 Binary files a/1080p/Monterey.png and /dev/null differ diff --git a/1080p/WhiteSur-dark.png b/1080p/WhiteSur-dark.png deleted file mode 100644 index 44a22ab..0000000 Binary files a/1080p/WhiteSur-dark.png and /dev/null differ diff --git a/1080p/WhiteSur-light.png b/1080p/WhiteSur-light.png deleted file mode 100644 index 6edc9cd..0000000 Binary files a/1080p/WhiteSur-light.png and /dev/null differ diff --git a/1080p/WhiteSur-morning.png b/1080p/WhiteSur-morning.png deleted file mode 100644 index c4eb88b..0000000 Binary files a/1080p/WhiteSur-morning.png and /dev/null differ diff --git a/1080p/WhiteSur.png b/1080p/WhiteSur.png deleted file mode 100644 index 5ede213..0000000 Binary files a/1080p/WhiteSur.png and /dev/null differ diff --git a/2k/Monterey-dark.png b/2k/Monterey-dark.png deleted file mode 100644 index c465e77..0000000 Binary files a/2k/Monterey-dark.png and /dev/null differ diff --git a/2k/Monterey-light.png b/2k/Monterey-light.png deleted file mode 100644 index 6f988e9..0000000 Binary files a/2k/Monterey-light.png and /dev/null differ diff --git a/2k/Monterey-morning.png b/2k/Monterey-morning.png deleted file mode 100644 index 9cfbd1b..0000000 Binary files a/2k/Monterey-morning.png and /dev/null differ diff --git a/2k/Monterey.png b/2k/Monterey.png deleted file mode 100644 index 9406b07..0000000 Binary files a/2k/Monterey.png and /dev/null differ diff --git a/2k/WhiteSur-dark.png b/2k/WhiteSur-dark.png deleted file mode 100644 index cb07816..0000000 Binary files a/2k/WhiteSur-dark.png and /dev/null differ diff --git a/2k/WhiteSur-light.png b/2k/WhiteSur-light.png deleted file mode 100644 index 14e92e8..0000000 Binary files a/2k/WhiteSur-light.png and /dev/null differ diff --git a/2k/WhiteSur-morning.png b/2k/WhiteSur-morning.png deleted file mode 100644 index 35ad6eb..0000000 Binary files a/2k/WhiteSur-morning.png and /dev/null differ diff --git a/2k/WhiteSur.png b/2k/WhiteSur.png deleted file mode 100644 index 2435d52..0000000 Binary files a/2k/WhiteSur.png and /dev/null differ diff --git a/4k/Monterey-dark.png b/4k/Monterey-dark.png deleted file mode 100644 index b600b42..0000000 Binary files a/4k/Monterey-dark.png and /dev/null differ diff --git a/4k/Monterey-light.png b/4k/Monterey-light.png deleted file mode 100644 index f7a3788..0000000 Binary files a/4k/Monterey-light.png and /dev/null differ diff --git a/4k/Monterey-morning.png b/4k/Monterey-morning.png deleted file mode 100644 index dee6514..0000000 Binary files a/4k/Monterey-morning.png and /dev/null differ diff --git a/4k/Monterey.png b/4k/Monterey.png deleted file mode 100644 index 6546e80..0000000 Binary files a/4k/Monterey.png and /dev/null differ diff --git a/4k/Ventura-dark.jpg b/4k/Ventura-dark.jpg new file mode 100644 index 0000000..22a57bb Binary files /dev/null and b/4k/Ventura-dark.jpg differ diff --git a/4k/Ventura-light.jpg b/4k/Ventura-light.jpg new file mode 100644 index 0000000..eb036d0 Binary files /dev/null and b/4k/Ventura-light.jpg differ diff --git a/4k/WhiteSur-dark.png b/4k/WhiteSur-dark.png deleted file mode 100644 index 4916949..0000000 Binary files a/4k/WhiteSur-dark.png and /dev/null differ diff --git a/4k/WhiteSur-light.png b/4k/WhiteSur-light.png deleted file mode 100644 index a845f9d..0000000 Binary files a/4k/WhiteSur-light.png and /dev/null differ diff --git a/4k/WhiteSur-morning.png b/4k/WhiteSur-morning.png deleted file mode 100644 index 12e6128..0000000 Binary files a/4k/WhiteSur-morning.png and /dev/null differ diff --git a/4k/WhiteSur.png b/4k/WhiteSur.png deleted file mode 100644 index 9e254c5..0000000 Binary files a/4k/WhiteSur.png and /dev/null differ diff --git a/README.md b/README.md index 4723d83..094768b 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ sudo ./install-gnome-backgrounds.sh > Options: ``` - -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey] (Default: All variants)s) - -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 1080p) + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (Default: All variants)s) + -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 4k) -u, --uninstall Uninstall wallpappers -h, --help Show help ``` @@ -23,9 +23,9 @@ sudo ./install-gnome-backgrounds.sh > Options: ``` - -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey] (Default: All variants)s) + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (Default: All variants)s) -c, --color VARIANT Specify color variant(s) [light|dark] (Default: All variants)s) - -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 1080p) + -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 4k) -n, --nord VARIANT Specify Nord color variant(s) -u, --uninstall Uninstall wallpappers -h, --help Show help diff --git a/install-gnome-backgrounds.sh b/install-gnome-backgrounds.sh index 6a51e8d..03f3321 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') +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura') SCREEN_VARIANTS=('1080p' '2k' '4k') #COLORS @@ -44,8 +44,8 @@ usage() { Usage: $0 [OPTION]... OPTIONS: - -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey] (Default: All variants)s) - -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 1080p) + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (Default: All variants)s) + -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 4k) -u, --uninstall Uninstall wallpappers -h, --help Show help @@ -63,7 +63,13 @@ install() { [[ -d ${BACKGROUND_DIR}/${theme} ]] && rm -rf ${BACKGROUND_DIR}/${theme} [[ -f ${PROPERTIES_DIR}/${theme}.xml ]] && rm -rf ${PROPERTIES_DIR}/${theme}.xml mkdir -p ${BACKGROUND_DIR}/${theme} - cp -a --no-preserve=ownership ${REPO_DIR}/${screen}/${theme}{'','-morning','-light'}.jpg ${BACKGROUND_DIR}/${theme} + + if [[ "${theme}" == 'Ventura' ]]; 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} + fi + cp -a --no-preserve=ownership ${REPO_DIR}/xml-files/timed-xml-files/${theme}-timed.xml ${BACKGROUND_DIR}/${theme} cp -a --no-preserve=ownership ${REPO_DIR}/xml-files/gnome-background-properties/${theme}.xml ${PROPERTIES_DIR} } @@ -105,6 +111,10 @@ while [[ $# -gt 0 ]]; do themes+=("${THEME_VARIANTS[1]}") shift 1 ;; + ventura) + themes+=("${THEME_VARIANTS[2]}") + shift 1 + ;; -*) break ;; @@ -166,7 +176,7 @@ fi install_wallpaper() { echo for theme in "${themes[@]}"; do - for screen in "${screens[0]}"; do + for screen in "${screens[2]}"; do install "$theme" "$screen" done done @@ -175,9 +185,9 @@ install_wallpaper() { uninstall_wallpaper() { echo - for theme in "${themes[@]}"; do - uninstall "$theme" - done + for theme in "${themes[@]}"; do + uninstall "$theme" + done echo } diff --git a/install-wallpapers.sh b/install-wallpapers.sh index 88c9fd6..6758ce0 100755 --- a/install-wallpapers.sh +++ b/install-wallpapers.sh @@ -3,8 +3,8 @@ REPO_DIR="$(cd "$(dirname "$0")" && pwd)" WALLPAPER_DIR="$HOME/.local/share/backgrounds" -THEME_VARIANTS=('WhiteSur' 'Monterey') -COLOR_VARIANTS=('' '-light' '-dark') +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura') +COLOR_VARIANTS=('-morning' '-light' '-dark') SCREEN_VARIANTS=('1080p' '2k' '4k') #COLORS @@ -41,9 +41,9 @@ usage() { Usage: $0 [OPTION]... OPTIONS: - -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey] (Default: All variants)s) - -c, --color VARIANT Specify color variant(s) [night|light|dark] (Default: All variants)s) - -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 1080p) + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (Default: All variants)s) + -c, --color VARIANT Specify color variant(s) [morning|light|dark] (Default: All variants)s) + -s, --screen VARIANT Specify screen variant [1080p|2k|4k] (Default: 4k) -n, --nord VARIANT Specify Nord color variant(s) -u, --uninstall Uninstall wallpappers -h, --help Show help @@ -60,8 +60,18 @@ install() { local screen="$3" prompt -i "\n * Install ${theme}${color} in ${WALLPAPER_DIR}... " mkdir -p "${WALLPAPER_DIR}" - [[ -f ${WALLPAPER_DIR}/${theme}${color}.png ]] && rm -rf ${WALLPAPER_DIR}/${theme}${color}.png - cp -a --no-preserve=ownership ${REPO_DIR}/${screen}/${theme}${color}.png ${WALLPAPER_DIR} + + if [[ "${theme}" == 'Ventura' ]]; then + [[ "${color}" == '-morning' ]] && local color='-light' + fi + + [[ -f ${WALLPAPER_DIR}/${theme}${color}.jpg ]] && rm -rf ${WALLPAPER_DIR}/${theme}${color}.jpg + + if [[ "${theme}" == 'Ventura' ]]; 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} + fi } install_nord() { @@ -73,7 +83,7 @@ uninstall() { local theme="$1" local color="$2" prompt -i "\n * Uninstall ${theme}${color}... " - rm -rf ${WALLPAPER_DIR}/${theme}${color}.png + rm -rf ${WALLPAPER_DIR}/${theme}${color}.jpg } uninstall_nord() { @@ -103,6 +113,10 @@ while [[ $# -gt 0 ]]; do themes+=("${THEME_VARIANTS[1]}") shift 1 ;; + ventura) + themes+=("${THEME_VARIANTS[1]}") + shift 1 + ;; -*) break ;; @@ -118,7 +132,7 @@ while [[ $# -gt 0 ]]; do shift for color in "$@"; do case "$color" in - night) + morning) colors+=("${COLOR_VARIANTS[0]}") shift 1 ;; @@ -189,7 +203,7 @@ if [[ "${#colors[@]}" -eq 0 ]] ; then fi if [[ "${#screens[@]}" -eq 0 ]] ; then - screens=("${SCREEN_VARIANTS[0]}") + screens=("${SCREEN_VARIANTS[2]}") fi install_wallpaper() { diff --git a/xml-files/gnome-background-properties/Ventura.xml b/xml-files/gnome-background-properties/Ventura.xml new file mode 100644 index 0000000..f4d4280 --- /dev/null +++ b/xml-files/gnome-background-properties/Ventura.xml @@ -0,0 +1,22 @@ + + + + + Ventura Background + /usr/share/backgrounds/Ventura/Ventura-light.jpg + /usr/share/backgrounds/Ventura/Ventura-dark.jpg + zoom + solid + #51a2da + #294172 + + + + Ventura Time of Day + /usr/share/backgrounds/Ventura/Ventura-timed.xml + zoom + solid + #ffffff + #000000 + + diff --git a/xml-files/timed-xml-files/Ventura-timed.xml b/xml-files/timed-xml-files/Ventura-timed.xml new file mode 100644 index 0000000..af6cef3 --- /dev/null +++ b/xml-files/timed-xml-files/Ventura-timed.xml @@ -0,0 +1,51 @@ + + + 2011 + 11 + 24 + 7 + 00 + 00 + + + + + + +3600.0 +/usr/share/backgrounds/Ventura/Ventura-light.jpg + + + + +18000.0 +/usr/share/backgrounds/Ventura/Ventura-light.jpg +/usr/share/backgrounds/Ventura/Ventura-light.jpg + + + + +18000.0 +/usr/share/backgrounds/Ventura/Ventura-light.jpg + + + + +21600.0 +/usr/share/backgrounds/Ventura/Ventura-light.jpg +/usr/share/backgrounds/Ventura/Ventura-dark.jpg + + + + +18000.0 +/usr/share/backgrounds/Ventura/Ventura-dark.jpg + + + + +7200.0 +/usr/share/backgrounds/Ventura/Ventura-dark.jpg +/usr/share/backgrounds/Ventura/Ventura-light.jpg + +