added backgrounds

This commit is contained in:
Sohrab Behdani 2024-07-17 22:22:42 +03:30
commit 0b80a8e843
26 changed files with 266 additions and 0 deletions

18
PKGBUILD Normal file
View file

@ -0,0 +1,18 @@
# Maintainer: Parch Linux Distribution Team <feedback@parchlinux.ir>
pkgname=parch-nature-backgrounds
pkgver=1.0
pkgrel=1
pkgdesc='Parch Linux nature Wallpapers'
arch=('any')
url="https://github.com/parchlinuxb/nature-backgrounds"
license=('GPL')
source=("wallpapers.zip")
sha256sums=('SKIP')
package() {
cd "wallpapers"
install -d "${pkgdir}/usr/share/wallpapers/parch-nature/"
install -Dm 644 *.jpg "${pkgdir}/usr/share/wallpapers/parch-nature/"
install -Dm 644 parch-nature.xml "${pkgdir}/usr/share/gnome-background-properties/parch-nature.xml"
}

7
build.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
zip wallpapers.zip wallpapers/*
makepkg -sc
echo Build Finished

61
makexml.sh Executable file
View file

@ -0,0 +1,61 @@
#!/bin/bash
# Directory containing the images
image_dir=$(pwd) # Current directory where the script is located
# Output XML file
output_file="wallpapers.xml"
# Function to generate the XML content for a single wallpaper
generate_wallpaper_xml() {
local name=$1
local filename=$2
local pcolor=$3
local scolor=$4
echo " <wallpaper deleted=\"false\">"
echo " <name>${name}</name>"
echo " <filename>${filename}</filename>"
echo " <options>zoom</options>"
echo " <shade_type>solid</shade_type>"
echo " <pcolor>${pcolor}</pcolor>"
echo " <scolor>${scolor}</scolor>"
echo " </wallpaper>"
}
# XML header
cat <<EOL > "$output_file"
<?xml version="1.0"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
EOL
# Colors for the wallpapers
colors=("#241f31" "#0B0021")
# Counter for naming
counter=1
# Loop through jpg, jpeg, and png files in the directory
for file in "$image_dir"/*.{jpg,jpeg,png}; do
if [[ -f $file ]]; then
# Determine the name and colors for the wallpaper
base_name=$(basename "$file")
name="Background ${counter}"
pcolor=${colors[$((counter % 2))]}
scolor="#000000"
xml_filename="/usr/share/wallpapers/parch-nature/$base_name"
# Generate the XML for the wallpaper
generate_wallpaper_xml "$name" "$xml_filename" "$pcolor" "$scolor" >> "$output_file"
# Increment the counter
counter=$((counter + 1))
fi
done
# XML footer
echo "</wallpapers>" >> "$output_file"
echo "XML file $output_file has been created."

BIN
wallpapers/nature-1.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
wallpapers/nature-10.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
wallpapers/nature-11.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
wallpapers/nature-12.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
wallpapers/nature-13.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
wallpapers/nature-14.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 MiB

BIN
wallpapers/nature-15.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
wallpapers/nature-16.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

BIN
wallpapers/nature-17.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

BIN
wallpapers/nature-18.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

BIN
wallpapers/nature-19.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

BIN
wallpapers/nature-2.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
wallpapers/nature-20.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

BIN
wallpapers/nature-21.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

BIN
wallpapers/nature-22.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

BIN
wallpapers/nature-3.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
wallpapers/nature-4.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

BIN
wallpapers/nature-5.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
wallpapers/nature-6.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

BIN
wallpapers/nature-7.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
wallpapers/nature-8.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

BIN
wallpapers/nature-9.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

180
wallpapers/parch-nature.xml Normal file
View file

@ -0,0 +1,180 @@
<?xml version="1.0"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
<wallpaper deleted="false">
<name>Background 1</name>
<filename>/usr/share/wallpapers/parch-nature/nature-10.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 2</name>
<filename>/usr/share/wallpapers/parch-nature/nature-11.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 3</name>
<filename>/usr/share/wallpapers/parch-nature/nature-12.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 4</name>
<filename>/usr/share/wallpapers/parch-nature/nature-13.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 5</name>
<filename>/usr/share/wallpapers/parch-nature/nature-14.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 6</name>
<filename>/usr/share/wallpapers/parch-nature/nature-15.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 7</name>
<filename>/usr/share/wallpapers/parch-nature/nature-16.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 8</name>
<filename>/usr/share/wallpapers/parch-nature/nature-17.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 9</name>
<filename>/usr/share/wallpapers/parch-nature/nature-18.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 10</name>
<filename>/usr/share/wallpapers/parch-nature/nature-19.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 11</name>
<filename>/usr/share/wallpapers/parch-nature/nature-1.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 12</name>
<filename>/usr/share/wallpapers/parch-nature/nature-20.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 13</name>
<filename>/usr/share/wallpapers/parch-nature/nature-21.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 14</name>
<filename>/usr/share/wallpapers/parch-nature/nature-22.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 15</name>
<filename>/usr/share/wallpapers/parch-nature/nature-2.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 16</name>
<filename>/usr/share/wallpapers/parch-nature/nature-3.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 17</name>
<filename>/usr/share/wallpapers/parch-nature/nature-4.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 18</name>
<filename>/usr/share/wallpapers/parch-nature/nature-5.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 19</name>
<filename>/usr/share/wallpapers/parch-nature/nature-6.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 20</name>
<filename>/usr/share/wallpapers/parch-nature/nature-7.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 21</name>
<filename>/usr/share/wallpapers/parch-nature/nature-8.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#0B0021</pcolor>
<scolor>#000000</scolor>
</wallpaper>
<wallpaper deleted="false">
<name>Background 22</name>
<filename>/usr/share/wallpapers/parch-nature/nature-9.jpg</filename>
<options>zoom</options>
<shade_type>solid</shade_type>
<pcolor>#241f31</pcolor>
<scolor>#000000</scolor>
</wallpaper>
</wallpapers>