add more wallpaper and fix some script

This commit is contained in:
SeraphimeZelel
2025-09-26 19:57:04 +07:00
parent 014f95ecd7
commit ca6ae11292
18 changed files with 16 additions and 7 deletions

2
.script/flameshot-copy.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
flameshot gui -r | wl-copy

View File

@@ -14,13 +14,15 @@ for img in *.{jpg,jpeg,png,webp,bmp}; do
# Check resolution
read width height <<< $(identify -format "%w %h" "$img")
if [[ "$width" -eq 1920 && "$height" -eq 1080 ]]; then
continue
fi
base="${img%.*}"
ext="png" # Converted wallpaper extension
orig_ext="${img##*.}" # Original extension for backup
orig_ext_lc="${orig_ext,,}" # Lowercase extension
# --- Skip condition ---
if [[ "$width" -eq 1920 && "$height" -eq 1080 && "$orig_ext_lc" == "png" ]]; then
continue
fi
# --- Determine next available name in wallpaper folder ---
max=0
@@ -40,8 +42,14 @@ for img in *.{jpg,jpeg,png,webp,bmp}; do
new_name="${base}_$((max + 1)).$ext"
fi
# Convert image
if magick "$img" -resize 1920x1080^ -gravity center -extent 1920x1080 "$new_name"; then
# Convert (resize if needed)
if [[ "$width" -eq 1920 && "$height" -eq 1080 ]]; then
magick "$img" "$new_name"
else
magick "$img" -resize 1920x1080^ -gravity center -extent 1920x1080 "$new_name"
fi
if [[ $? -eq 0 ]]; then
echo "Converted: $img -> $new_name"
# --- Move original to backup with incremental name and original extension ---
@@ -70,4 +78,3 @@ for img in *.{jpg,jpeg,png,webp,bmp}; do
done
echo "✅ All Wallpapers has been processed $WALLPAPERS"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
Wallpaper/Arknight_Mumu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

BIN
Wallpaper/Arknight_Shu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

BIN
Wallpaper/PGR_Selena.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB