add more wallpaper and fix some script
2
.script/flameshot-copy.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
flameshot gui -r | wl-copy
|
||||
@@ -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"
|
||||
|
||||
|
||||
BIN
Wallpaper/Arknight_Glaucus.png
Normal file
|
After Width: | Height: | Size: 3.2 MiB |
BIN
Wallpaper/Arknight_Lemuen_2.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
Wallpaper/Arknight_Mostima_2.png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
Wallpaper/Arknight_Mumu.png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
Wallpaper/Arknight_Saileach.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
BIN
Wallpaper/Arknight_Shu.png
Normal file
|
After Width: | Height: | Size: 3.3 MiB |
BIN
Wallpaper/Genshin_Furina_3.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
BIN
Wallpaper/PGR_Selena.png
Normal file
|
After Width: | Height: | Size: 2.8 MiB |
BIN
Wallpaper/StarRail_Evernight.png
Normal file
|
After Width: | Height: | Size: 3.7 MiB |
BIN
Wallpaper/Wuthering_Cartethyia_2.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
BIN
Wallpaper/Wuthering_Ciaconna.png
Normal file
|
After Width: | Height: | Size: 2.3 MiB |
BIN
Wallpaper/Wuthering_Iuno.png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
Wallpaper/Wuthering_Iuno_2.png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
Wallpaper/Wuthering_Iuno_3.png
Normal file
|
After Width: | Height: | Size: 3.3 MiB |
BIN
Wallpaper/Wuthering_Iuno_4.png
Normal file
|
After Width: | Height: | Size: 3.5 MiB |
BIN
Wallpaper/Wuthering_Jinhsi_2.png
Normal file
|
After Width: | Height: | Size: 3.4 MiB |