This commit is contained in:
vinceliuice 2023-06-11 11:31:11 +08:00
parent 1859a8bbc1
commit 000bc7dafe
31 changed files with 119 additions and 22 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 857 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 612 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

BIN
4k/Ventura-dark.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

BIN
4k/Ventura-light.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -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

View File

@ -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
}

View File

@ -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() {

View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
<wallpaper deleted="false">
<name>Ventura Background</name>
<filename>/usr/share/backgrounds/Ventura/Ventura-light.jpg</filename>
<filename-dark>/usr/share/backgrounds/Ventura/Ventura-dark.jpg</filename-dark>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#51a2da</pcolor>
<scolor>#294172</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Ventura Time of Day</name>
<filename>/usr/share/backgrounds/Ventura/Ventura-timed.xml</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#ffffff</pcolor>
<scolor>#000000</scolor>
</wallpaper>
</wallpapers>

View File

@ -0,0 +1,51 @@
<background>
<starttime>
<year>2011</year>
<month>11</month>
<day>24</day>
<hour>7</hour>
<minute>00</minute>
<second>00</second>
</starttime>
<!-- This animation will start at 7 AM. -->
<!-- We start with sunrise at 7 AM. It will remain up for 1 hour. -->
<static>
<duration>3600.0</duration>
<file>/usr/share/backgrounds/Ventura/Ventura-light.jpg</file>
</static>
<!-- Sunrise starts to transition to day at 8 AM. The transition lasts for 5 hours, ending at 1 PM. -->
<transition type="overlay">
<duration>18000.0</duration>
<from>/usr/share/backgrounds/Ventura/Ventura-light.jpg</from>
<to>/usr/share/backgrounds/Ventura/Ventura-light.jpg</to>
</transition>
<!-- It's 1 PM, we're showing the day image in full force now, for 5 hours ending at 6 PM. -->
<static>
<duration>18000.0</duration>
<file>/usr/share/backgrounds/Ventura/Ventura-light.jpg</file>
</static>
<!-- It's 7 PM and it's going to start to get darker. This will transition for 6 hours up until midnight. -->
<transition type="overlay">
<duration>21600.0</duration>
<from>/usr/share/backgrounds/Ventura/Ventura-light.jpg</from>
<to>/usr/share/backgrounds/Ventura/Ventura-dark.jpg</to>
</transition>
<!-- It's midnight. It'll stay dark for 5 hours up until 5 AM. -->
<static>
<duration>18000.0</duration>
<file>/usr/share/backgrounds/Ventura/Ventura-dark.jpg</file>
</static>
<!-- It's 5 AM. We'll start transitioning to sunrise for 2 hours up until 7 AM. -->
<transition type="overlay">
<duration>7200.0</duration>
<from>/usr/share/backgrounds/Ventura/Ventura-dark.jpg</from>
<to>/usr/share/backgrounds/Ventura/Ventura-light.jpg</to>
</transition>
</background>