quiethost

This commit is contained in:
Lucas Faber authored and Lucas Vivohost committed 2026-09-14 09:20:47 +02:00
1 parent 9c379af76b
commit b3c06c0a80
47 files changed
+2116

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
while IFS= read -r line; do
element_name="$(printf "%s_%s_%s%s\n" "$(echo $line | cut -f2 -d' ')" "$(echo $line | cut -f3 -d' ')" "$(echo $line | cut -f1 -d' ' | head -c 1 | tr 'a-z' 'A-Z')" "$(echo $line | cut -f1 -d' ' | tail -c +2)")"
element="$(printf "%s%s\n" "$(echo $line | cut -f1 -d' ' | head -c 1 | tr 'a-z' 'A-Z')" "$(echo $line | cut -f1 -d' ' | tail -c +2)")"
LINK="$(wget -qO- https://commons.wikimedia.org/wiki/File:${element}_spectrum_visible.png | grep "Original file" | grep -o 'href="[^"]*' | tail -c +7)"
if [ "$LINK" == "" ]; then
echo "None for $element"
else
echo $LINK
fi
wget $LINK
mv ${element}_spectrum_visible.png ${element_name}.png
convert ${element_name}.png -resize 3840x ${element_name}.png
convert ${element_name}.png -crop 3840x540+0+0 ${element_name}.png
mv ${element_name}.png /home/lucas/Documents/Dokumente/Zeug/Wallpaper/Desktop1920x1080/Elements/Elements_Panorama_${element_name}.png
done < "get_images.txt"