commit b0833b6fb9aafa982477f37afc1fbe34950c543f Author: luisgulo Date: Sun Feb 9 17:13:44 2025 +0100 Fondos de Escritorio diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/1080p/Monterey-dark.jpg b/1080p/Monterey-dark.jpg new file mode 100644 index 0000000..b5db960 Binary files /dev/null and b/1080p/Monterey-dark.jpg differ diff --git a/1080p/Monterey-light.jpg b/1080p/Monterey-light.jpg new file mode 100644 index 0000000..6c5331c Binary files /dev/null and b/1080p/Monterey-light.jpg differ diff --git a/1080p/Monterey-morning.jpg b/1080p/Monterey-morning.jpg new file mode 100644 index 0000000..d8b42e4 Binary files /dev/null and b/1080p/Monterey-morning.jpg differ diff --git a/1080p/Monterey.jpg b/1080p/Monterey.jpg new file mode 100644 index 0000000..488e9ff Binary files /dev/null and b/1080p/Monterey.jpg differ diff --git a/1080p/WhiteSur-dark.jpg b/1080p/WhiteSur-dark.jpg new file mode 100644 index 0000000..b5e557e Binary files /dev/null and b/1080p/WhiteSur-dark.jpg differ diff --git a/1080p/WhiteSur-light.jpg b/1080p/WhiteSur-light.jpg new file mode 100644 index 0000000..fa15d3d Binary files /dev/null and b/1080p/WhiteSur-light.jpg differ diff --git a/1080p/WhiteSur-morning.jpg b/1080p/WhiteSur-morning.jpg new file mode 100644 index 0000000..aa648b2 Binary files /dev/null and b/1080p/WhiteSur-morning.jpg differ diff --git a/1080p/WhiteSur.jpg b/1080p/WhiteSur.jpg new file mode 100644 index 0000000..f85d42d Binary files /dev/null and b/1080p/WhiteSur.jpg differ diff --git a/2k/Monterey-dark.jpg b/2k/Monterey-dark.jpg new file mode 100644 index 0000000..bdfc4cb Binary files /dev/null and b/2k/Monterey-dark.jpg differ diff --git a/2k/Monterey-light.jpg b/2k/Monterey-light.jpg new file mode 100644 index 0000000..4b1aed3 Binary files /dev/null and b/2k/Monterey-light.jpg differ diff --git a/2k/Monterey-morning.jpg b/2k/Monterey-morning.jpg new file mode 100644 index 0000000..662c02f Binary files /dev/null and b/2k/Monterey-morning.jpg differ diff --git a/2k/Monterey.jpg b/2k/Monterey.jpg new file mode 100644 index 0000000..d0b4140 Binary files /dev/null and b/2k/Monterey.jpg differ diff --git a/2k/WhiteSur-dark.jpg b/2k/WhiteSur-dark.jpg new file mode 100644 index 0000000..5d43c02 Binary files /dev/null and b/2k/WhiteSur-dark.jpg differ diff --git a/2k/WhiteSur-light.jpg b/2k/WhiteSur-light.jpg new file mode 100644 index 0000000..43c0357 Binary files /dev/null and b/2k/WhiteSur-light.jpg differ diff --git a/2k/WhiteSur-morning.jpg b/2k/WhiteSur-morning.jpg new file mode 100644 index 0000000..3aebc4c Binary files /dev/null and b/2k/WhiteSur-morning.jpg differ diff --git a/2k/WhiteSur.jpg b/2k/WhiteSur.jpg new file mode 100644 index 0000000..0df4ea4 Binary files /dev/null and b/2k/WhiteSur.jpg differ diff --git a/4k/Monterey-dark.jpg b/4k/Monterey-dark.jpg new file mode 100644 index 0000000..38551df Binary files /dev/null and b/4k/Monterey-dark.jpg differ diff --git a/4k/Monterey-light.jpg b/4k/Monterey-light.jpg new file mode 100644 index 0000000..da8758a Binary files /dev/null and b/4k/Monterey-light.jpg differ diff --git a/4k/Monterey-morning.jpg b/4k/Monterey-morning.jpg new file mode 100644 index 0000000..81f57ad Binary files /dev/null and b/4k/Monterey-morning.jpg differ diff --git a/4k/Monterey.jpg b/4k/Monterey.jpg new file mode 100644 index 0000000..62979cd Binary files /dev/null and b/4k/Monterey.jpg differ 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/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.jpg b/4k/WhiteSur-dark.jpg new file mode 100644 index 0000000..2678504 Binary files /dev/null and b/4k/WhiteSur-dark.jpg differ diff --git a/4k/WhiteSur-light.jpg b/4k/WhiteSur-light.jpg new file mode 100644 index 0000000..8efbc1f Binary files /dev/null and b/4k/WhiteSur-light.jpg differ diff --git a/4k/WhiteSur-morning.jpg b/4k/WhiteSur-morning.jpg new file mode 100644 index 0000000..d6b8ff8 Binary files /dev/null and b/4k/WhiteSur-morning.jpg differ diff --git a/4k/WhiteSur.jpg b/4k/WhiteSur.jpg new file mode 100644 index 0000000..0b7d543 Binary files /dev/null and b/4k/WhiteSur.jpg differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..32500da --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Vince + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5dc05dc --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +## Installation +### Install Gnome Backgrounds (wallpaper will change according to time) + +```sh +sudo ./install-gnome-backgrounds.sh +``` + +> Options: + +``` + -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 +``` + +### Install Normal Wallpapers + +```sh +./install-wallpapers.sh +``` + +> Options: + +``` + -t, --theme VARIANT Specify theme variant(s) [whitesur|monterey|ventura] (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: 4k) + -n, --nord VARIANT Specify Nord color variant(s) + -u, --uninstall Uninstall wallpappers + -h, --help Show help +``` + +## Ventura Wallpapers +![preview](preview-ventura.png) + +## Monterey Wallpapers +![preview](preview-monterey.png) + +## WhiteSur (Big Sur) Wallpapers +![preview](preview-whitesur.png) + +## Nord Wallpapers +![preview](preview-nord.png) diff --git a/Wallpaper-nord/Mojave-nord-dark.png b/Wallpaper-nord/Mojave-nord-dark.png new file mode 100644 index 0000000..3ce1252 Binary files /dev/null and b/Wallpaper-nord/Mojave-nord-dark.png differ diff --git a/Wallpaper-nord/Mojave-nord-light.png b/Wallpaper-nord/Mojave-nord-light.png new file mode 100644 index 0000000..eb02fa8 Binary files /dev/null and b/Wallpaper-nord/Mojave-nord-light.png differ diff --git a/Wallpaper-nord/Monterey-nord.png b/Wallpaper-nord/Monterey-nord.png new file mode 100644 index 0000000..afec9dc Binary files /dev/null and b/Wallpaper-nord/Monterey-nord.png differ diff --git a/Wallpaper-nord/WhiteSur-nord-dark.png b/Wallpaper-nord/WhiteSur-nord-dark.png new file mode 100644 index 0000000..04fc156 Binary files /dev/null and b/Wallpaper-nord/WhiteSur-nord-dark.png differ diff --git a/Wallpaper-nord/WhiteSur-nord-light.png b/Wallpaper-nord/WhiteSur-nord-light.png new file mode 100644 index 0000000..b568875 Binary files /dev/null and b/Wallpaper-nord/WhiteSur-nord-light.png differ diff --git a/install-gnome-backgrounds.sh b/install-gnome-backgrounds.sh new file mode 100755 index 0000000..c15c54d --- /dev/null +++ b/install-gnome-backgrounds.sh @@ -0,0 +1,211 @@ +#!/bin/bash + +readonly ROOT_UID=0 +readonly MAX_DELAY=20 # max delay for user to enter root password + +REPO_DIR="$(cd "$(dirname "$0")" && pwd)" +BACKGROUND_DIR="/usr/share/backgrounds" +PROPERTIES_DIR="/usr/share/gnome-background-properties" + +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura' 'Sonoma') +SCREEN_VARIANTS=('1080p' '2k' '4k') + +#COLORS +CDEF=" \033[0m" # default color +CCIN=" \033[0;36m" # info color +CGSC=" \033[0;32m" # success color +CRER=" \033[0;31m" # error color +CWAR=" \033[0;33m" # waring color +b_CDEF=" \033[1;37m" # bold default color +b_CCIN=" \033[1;36m" # bold info color +b_CGSC=" \033[1;32m" # bold success color +b_CRER=" \033[1;31m" # bold error color +b_CWAR=" \033[1;33m" # bold warning color + +# echo like ... with flag type and display message colors +prompt () { + case ${1} in + "-s"|"--success") + echo -e "${b_CGSC}${@/-s/}${CDEF}";; # print success message + "-e"|"--error") + echo -e "${b_CRER}${@/-e/}${CDEF}";; # print error message + "-w"|"--warning") + echo -e "${b_CWAR}${@/-w/}${CDEF}";; # print warning message + "-i"|"--info") + echo -e "${b_CCIN}${@/-i/}${CDEF}";; # print info message + *) + echo -e "$@" + ;; + esac +} + +usage() { + cat << EOF +Usage: $0 [OPTION]... + +OPTIONS: + -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 + +INSTALLATION EXAMPLES: +Install WhiteSur version on 4k display: + $0 -t whitesur -s 4k +EOF +} + +install() { + local theme="$1" + local screen="$2" + + prompt -i "\n * Install ${theme} ${screen} version in ${BACKGROUND_DIR}... " + [[ -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} + + 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} + 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} +} + +uninstall() { + local theme="$1" + prompt -i "\n * Uninstall ${theme}... " + [[ -d ${BACKGROUND_DIR}/${theme} ]] && rm -rf ${BACKGROUND_DIR}/${theme} + [[ -f ${PROPERTIES_DIR}/${theme}.xml ]] && rm -rf ${PROPERTIES_DIR}/${theme}.xml +} + +uninstall_nord() { + [[ -d ${BACKGROUND_DIR}/Wallpaper-nord ]] && rm -rf ${BACKGROUND_DIR}/${BACKGROUND_DIR}/Wallpaper-nord + [[ -f ${PROPERTIES_DIR}/Mojave.xml ]] && rm -rf ${PROPERTIES_DIR}/Mojave.xml +} + +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-nord.xml ${PROPERTIES_DIR} +} + +while [[ $# -gt 0 ]]; do + case "${1}" in + -u|--uninstall) + uninstall='true' + shift + ;; + -t|--theme) + shift + for theme in "$@"; do + case "$theme" in + whitesur) + themes+=("${THEME_VARIANTS[0]}") + shift 1 + ;; + monterey) + themes+=("${THEME_VARIANTS[1]}") + shift 1 + ;; + ventura) + themes+=("${THEME_VARIANTS[2]}") + shift 1 + ;; + sonoma) + themes+=("${THEME_VARIANTS[3]}") + shift 1 + ;; + -*) + break + ;; + *) + prompt -e "ERROR: Unrecognized theme variant '$1'." + prompt -i "Try '$0 --help' for more information." + exit 1 + ;; + esac + done + ;; + -s|--screen) + shift + for screen in "$@"; do + case "$screen" in + 1080p) + screens+=("${SCREEN_VARIANTS[0]}") + shift 1 + ;; + 2k) + screens+=("${SCREEN_VARIANTS[1]}") + shift 1 + ;; + 4k) + screens+=("${SCREEN_VARIANTS[2]}") + shift 1 + ;; + -*) + break + ;; + *) + prompt -e "ERROR: Unrecognized screen variant '$1'." + prompt -i "Try '$0 --help' for more information." + exit 1 + ;; + esac + done + ;; + -h|--help) + usage + exit 0 + ;; + *) + prompt -e "ERROR: Unrecognized installation option '$1'." + prompt -i "Try '$0 --help' for more information." + exit 1 + ;; + esac +done + +if [[ "${#themes[@]}" -eq 0 ]] ; then + themes=("${THEME_VARIANTS[@]}") +fi + +if [[ "${#screens[@]}" -eq 0 ]] ; then + screens=("${SCREEN_VARIANTS[@]}") +fi + +install_wallpaper() { + echo + for theme in "${themes[@]}"; do + for screen in "${screens[2]}"; do + install "$theme" "$screen" + done + done + echo +} + +uninstall_wallpaper() { + echo + for theme in "${themes[@]}"; do + uninstall "$theme" + done + echo +} + +if [[ $UID -ne $ROOT_UID ]]; then + echo + prompt -e "ERROR: Need root access! please run this script with sudo." + echo + exit 1 +fi + +if [[ "${uninstall}" != 'true' ]]; then + install_wallpaper && install_nord_wallpaper +else + uninstall_wallpaper && uninstall_nord +fi + +prompt -s "Finished!" diff --git a/install-wallpapers.sh b/install-wallpapers.sh new file mode 100755 index 0000000..126d483 --- /dev/null +++ b/install-wallpapers.sh @@ -0,0 +1,243 @@ +#!/bin/bash + +REPO_DIR="$(cd "$(dirname "$0")" && pwd)" +WALLPAPER_DIR="$HOME/.local/share/backgrounds" + +THEME_VARIANTS=('WhiteSur' 'Monterey' 'Ventura' 'Sonoma') +COLOR_VARIANTS=('' '-light' '-dark') +SCREEN_VARIANTS=('1080p' '2k' '4k') + +#COLORS +CDEF=" \033[0m" # default color +CCIN=" \033[0;36m" # info color +CGSC=" \033[0;32m" # success color +CRER=" \033[0;31m" # error color +CWAR=" \033[0;33m" # waring color +b_CDEF=" \033[1;37m" # bold default color +b_CCIN=" \033[1;36m" # bold info color +b_CGSC=" \033[1;32m" # bold success color +b_CRER=" \033[1;31m" # bold error color +b_CWAR=" \033[1;33m" # bold warning color + +# echo like ... with flag type and display message colors +prompt () { + case ${1} in + "-s"|"--success") + echo -e "${b_CGSC}${@/-s/}${CDEF}";; # print success message + "-e"|"--error") + echo -e "${b_CRER}${@/-e/}${CDEF}";; # print error message + "-w"|"--warning") + echo -e "${b_CWAR}${@/-w/}${CDEF}";; # print warning message + "-i"|"--info") + echo -e "${b_CCIN}${@/-i/}${CDEF}";; # print info message + *) + echo -e "$@" + ;; + esac +} + +usage() { + cat << EOF +Usage: $0 [OPTION]... + +OPTIONS: + -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 + +INSTALLATION EXAMPLES: +Install WhiteSur dark version on 4k display: + $0 -t whitesur -c dark -s 4k +EOF +} + +install() { + local theme="$1" + local color="$2" + local screen="$3" + prompt -i "\n * Install ${theme}${color} in ${WALLPAPER_DIR}... " + mkdir -p "${WALLPAPER_DIR}" + + 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' || "${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} + fi +} + +install_nord() { + prompt -i "\n * Install Nord Wallpapers in ${WALLPAPER_DIR}... " + cp -a --no-preserve=ownership ${REPO_DIR}/Wallpaper-nord/{'Mojave-nord','WhiteSur-nord'}{'-dark','-light'}.png ${WALLPAPER_DIR} +} + +uninstall() { + local theme="$1" + local color="$2" + prompt -i "\n * Uninstall ${theme}${color}... " + rm -rf ${WALLPAPER_DIR}/${theme}${color}.jpg +} + +uninstall_nord() { + prompt -i "\n * Uninstall Nord Wallpapers... " + rm -rf ${WALLPAPER_DIR}/{'Mojave-nord','WhiteSur-nord'}{'-dark','-light'}.png +} + +while [[ $# -gt 0 ]]; do + case "${1}" in + -u|--uninstall) + uninstall='true' + shift + ;; + -n|--nord) + nord='true' + shift + ;; + -t|--theme) + shift + for theme in "$@"; do + case "$theme" in + whitesur) + themes+=("${THEME_VARIANTS[0]}") + shift 1 + ;; + monterey) + themes+=("${THEME_VARIANTS[1]}") + shift 1 + ;; + ventura) + themes+=("${THEME_VARIANTS[2]}") + shift 1 + ;; + sonoma) + themes+=("${THEME_VARIANTS[3]}") + shift 1 + ;; + -*) + break + ;; + *) + echo "ERROR: Unrecognized theme variant '$1'." + echo "Try '$0 --help' for more information." + exit 1 + ;; + esac + done + ;; + -c|--color) + shift + for color in "$@"; do + case "$color" in + night) + colors+=("${COLOR_VARIANTS[0]}") + shift 1 + ;; + light) + colors+=("${COLOR_VARIANTS[1]}") + shift 1 + ;; + dark) + colors+=("${COLOR_VARIANTS[2]}") + shift 1 + ;; + -*) + break + ;; + *) + echo "ERROR: Unrecognized color variant '$1'." + echo "Try '$0 --help' for more information." + exit 1 + ;; + esac + done + ;; + -s|--screen) + shift + for screen in "$@"; do + case "$screen" in + 1080p) + screens+=("${SCREEN_VARIANTS[0]}") + shift 1 + ;; + 2k) + screens+=("${SCREEN_VARIANTS[1]}") + shift 1 + ;; + 4k) + screens+=("${SCREEN_VARIANTS[2]}") + shift 1 + ;; + -*) + break + ;; + *) + echo "ERROR: Unrecognized color variant '$1'." + echo "Try '$0 --help' for more information." + exit 1 + ;; + esac + done + ;; + -h|--help) + usage + exit 0 + ;; + *) + prompt -e "ERROR: Unrecognized installation option '$1'." + prompt -i "Try '$0 --help' for more information." + exit 1 + ;; + esac +done + +if [[ "${#themes[@]}" -eq 0 ]] ; then + themes=("${THEME_VARIANTS[@]}") +fi + +if [[ "${#colors[@]}" -eq 0 ]] ; then + colors=("${COLOR_VARIANTS[@]}") +fi + +if [[ "${#screens[@]}" -eq 0 ]] ; then + screens=("${SCREEN_VARIANTS[2]}") +fi + +install_wallpaper() { + for theme in "${themes[@]}"; do + for color in "${colors[@]}"; do + for screen in "${screens[@]}"; do + install "$theme" "$color" "$screen" + done + done + done +} + +uninstall_wallpaper() { + for theme in "${themes[@]}"; do + for color in "${colors[@]}"; do + uninstall "$theme" "$color" + done + done +} + +echo +if [[ "${uninstall}" != 'true' ]]; then + if [[ "${nord}" != 'true' ]]; then + install_wallpaper + else + install_nord + fi +else + uninstall_wallpaper && uninstall_nord +fi +prompt -s "\n * All done!" +echo + diff --git a/preview-monterey.png b/preview-monterey.png new file mode 100644 index 0000000..eb02fbb Binary files /dev/null and b/preview-monterey.png differ diff --git a/preview-nord.png b/preview-nord.png new file mode 100644 index 0000000..faf725e Binary files /dev/null and b/preview-nord.png differ diff --git a/preview-ventura.png b/preview-ventura.png new file mode 100644 index 0000000..30667bf Binary files /dev/null and b/preview-ventura.png differ diff --git a/preview-whitesur.png b/preview-whitesur.png new file mode 100644 index 0000000..e887a78 Binary files /dev/null and b/preview-whitesur.png differ diff --git a/render-wallpapers.sh b/render-wallpapers.sh new file mode 100755 index 0000000..2ae16f3 --- /dev/null +++ b/render-wallpapers.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +INKSCAPE="$(command -v inkscape)" || true +OPTIPNG="$(command -v optipng)" || true +CONVERT="$(command -v convert)" || true + +for theme in 'Monterey' 'WhiteSur'; do + for screen in '1080p' '2k' '4k'; do + for color in '' '-light' '-dark' '-morning'; do + +if [[ "${screen}" == '1080p' ]]; then + DPI="96" +elif [[ "${screen}" == '2k' ]]; then + DPI="128" +elif [[ "${screen}" == '4k' ]]; then + DPI="192" +fi + +SRC_FILE="${theme}${color}.svg" +PNG_file="${screen}/${theme}${color}.png" +JPG_file="${screen}/${theme}${color}.jpg" + +if [[ -f "$PNG_file" ]]; then + echo "'$PNG_file' exist! " +else + echo "Rendering '$PNG_file'" + "$INKSCAPE" --export-dpi="$DPI" \ + --export-filename="$PNG_file" "$SRC_FILE" >/dev/null + +# if [[ -n "${OPTIPNG}" ]]; then +# "$OPTIPNG" -o7 --quiet "$PNG_file" +# fi +fi + +if [[ -f "$JPG_file" ]]; then + echo "'$JPG_file' exist! " +else + echo "Rendering '$JPG_file'" + "$CONVERT" "$PNG_file" -quality 100 "${screen}/${theme}${color}.jpg" +fi + + done + done +done + + diff --git a/src/Monterey-dark.svg b/src/Monterey-dark.svg new file mode 100644 index 0000000..a01337f --- /dev/null +++ b/src/Monterey-dark.svg @@ -0,0 +1,1155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Monterey-light.svg b/src/Monterey-light.svg new file mode 100644 index 0000000..0688a5f --- /dev/null +++ b/src/Monterey-light.svg @@ -0,0 +1,1158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Monterey-morning.svg b/src/Monterey-morning.svg new file mode 100644 index 0000000..b8f7d85 --- /dev/null +++ b/src/Monterey-morning.svg @@ -0,0 +1,1285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Monterey.svg b/src/Monterey.svg new file mode 100644 index 0000000..792cc8d --- /dev/null +++ b/src/Monterey.svg @@ -0,0 +1,1253 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/WhiteSur-Nord.svg b/src/WhiteSur-Nord.svg new file mode 100644 index 0000000..32792cd --- /dev/null +++ b/src/WhiteSur-Nord.svg @@ -0,0 +1,1011 @@ + + + + diff --git a/src/WhiteSur-dark.svg b/src/WhiteSur-dark.svg new file mode 100644 index 0000000..9899380 --- /dev/null +++ b/src/WhiteSur-dark.svg @@ -0,0 +1,832 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/WhiteSur-light.svg b/src/WhiteSur-light.svg new file mode 100644 index 0000000..8a0e9e9 --- /dev/null +++ b/src/WhiteSur-light.svg @@ -0,0 +1,780 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/WhiteSur-morning.svg b/src/WhiteSur-morning.svg new file mode 100644 index 0000000..7cddcc9 --- /dev/null +++ b/src/WhiteSur-morning.svg @@ -0,0 +1,822 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/WhiteSur.svg b/src/WhiteSur.svg new file mode 100644 index 0000000..391e377 --- /dev/null +++ b/src/WhiteSur.svg @@ -0,0 +1,888 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xml-files/gnome-background-properties/Mojave-nord.xml b/xml-files/gnome-background-properties/Mojave-nord.xml new file mode 100644 index 0000000..df114d9 --- /dev/null +++ b/xml-files/gnome-background-properties/Mojave-nord.xml @@ -0,0 +1,13 @@ + + + + + Mojave Nord Background + /usr/share/backgrounds/Wallpaper-nord/Mojave-nord-light.png + /usr/share/backgrounds/Wallpaper-nord/Mojave-nord-dark.png + zoom + solid + #3071AE + #000000 + + diff --git a/xml-files/gnome-background-properties/Monterey.xml b/xml-files/gnome-background-properties/Monterey.xml new file mode 100644 index 0000000..6416c9c --- /dev/null +++ b/xml-files/gnome-background-properties/Monterey.xml @@ -0,0 +1,22 @@ + + + + + Monterey Background + /usr/share/backgrounds/Monterey/Monterey-light.jpg + /usr/share/backgrounds/Monterey/Monterey.jpg + zoom + solid + #51a2da + #294172 + + + + Monterey Time of Day + /usr/share/backgrounds/Monterey/Monterey-timed.xml + zoom + solid + #ffffff + #000000 + + 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/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/gnome-background-properties/WhiteSur.xml b/xml-files/gnome-background-properties/WhiteSur.xml new file mode 100644 index 0000000..d2b6d46 --- /dev/null +++ b/xml-files/gnome-background-properties/WhiteSur.xml @@ -0,0 +1,32 @@ + + + + + WhiteSur Background + /usr/share/backgrounds/WhiteSur/WhiteSur-light.jpg + /usr/share/backgrounds/WhiteSur/WhiteSur.jpg + zoom + solid + #51a2da + #294172 + + + + WhiteSur Nord Background + /usr/share/backgrounds/Wallpaper-nord/WhiteSur-nord-light.png + /usr/share/backgrounds/Wallpaper-nord/WhiteSur-nord-dark.png + zoom + solid + #6882b3 + #455a85 + + + + WhiteSur Time of Day + /usr/share/backgrounds/WhiteSur/WhiteSur-timed.xml + zoom + solid + #ffffff + #000000 + + diff --git a/xml-files/timed-xml-files/Monterey-timed.xml b/xml-files/timed-xml-files/Monterey-timed.xml new file mode 100644 index 0000000..d4bda94 --- /dev/null +++ b/xml-files/timed-xml-files/Monterey-timed.xml @@ -0,0 +1,51 @@ + + + 2011 + 11 + 24 + 7 + 00 + 00 + + + + + + +3600.0 +/usr/share/backgrounds/Monterey/Monterey-morning.jpg + + + + +18000.0 +/usr/share/backgrounds/Monterey/Monterey-morning.jpg +/usr/share/backgrounds/Monterey/Monterey-light.jpg + + + + +18000.0 +/usr/share/backgrounds/Monterey/Monterey-light.jpg + + + + +21600.0 +/usr/share/backgrounds/Monterey/Monterey-light.jpg +/usr/share/backgrounds/Monterey/Monterey.jpg + + + + +18000.0 +/usr/share/backgrounds/Monterey/Monterey.jpg + + + + +7200.0 +/usr/share/backgrounds/Monterey/Monterey.jpg +/usr/share/backgrounds/Monterey/Monterey-morning.jpg + + 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 + + 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 + + diff --git a/xml-files/timed-xml-files/WhiteSur-timed.xml b/xml-files/timed-xml-files/WhiteSur-timed.xml new file mode 100644 index 0000000..807c1f6 --- /dev/null +++ b/xml-files/timed-xml-files/WhiteSur-timed.xml @@ -0,0 +1,51 @@ + + + 2011 + 11 + 24 + 7 + 00 + 00 + + + + + + +3600.0 +/usr/share/backgrounds/WhiteSur/WhiteSur-morning.jpg + + + + +18000.0 +/usr/share/backgrounds/WhiteSur/WhiteSur-morning.jpg +/usr/share/backgrounds/WhiteSur/WhiteSur-light.jpg + + + + +18000.0 +/usr/share/backgrounds/WhiteSur/WhiteSur-light.jpg + + + + +21600.0 +/usr/share/backgrounds/WhiteSur/WhiteSur-light.jpg +/usr/share/backgrounds/WhiteSur/WhiteSur.jpg + + + + +18000.0 +/usr/share/backgrounds/WhiteSur/WhiteSur.jpg + + + + +7200.0 +/usr/share/backgrounds/WhiteSur/WhiteSur.jpg +/usr/share/backgrounds/WhiteSur/WhiteSur-morning.jpg + +