diff --git a/.script/flameshot-copy.sh b/.script/flameshot-copy.sh new file mode 100755 index 0000000..7670342 --- /dev/null +++ b/.script/flameshot-copy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +flameshot gui -r | wl-copy diff --git a/.script/scaler-wallpaper.sh b/.script/scaler-wallpaper.sh index 3a46faf..924e9a6 100755 --- a/.script/scaler-wallpaper.sh +++ b/.script/scaler-wallpaper.sh @@ -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" - diff --git a/Wallpaper/Arknight_Glaucus.png b/Wallpaper/Arknight_Glaucus.png new file mode 100644 index 0000000..a27ba4f Binary files /dev/null and b/Wallpaper/Arknight_Glaucus.png differ diff --git a/Wallpaper/Arknight_Lemuen_2.png b/Wallpaper/Arknight_Lemuen_2.png new file mode 100644 index 0000000..9fa05f3 Binary files /dev/null and b/Wallpaper/Arknight_Lemuen_2.png differ diff --git a/Wallpaper/Arknight_Mostima_2.png b/Wallpaper/Arknight_Mostima_2.png new file mode 100644 index 0000000..db2bc13 Binary files /dev/null and b/Wallpaper/Arknight_Mostima_2.png differ diff --git a/Wallpaper/Arknight_Mumu.png b/Wallpaper/Arknight_Mumu.png new file mode 100644 index 0000000..b5ac64a Binary files /dev/null and b/Wallpaper/Arknight_Mumu.png differ diff --git a/Wallpaper/Arknight_Saileach.png b/Wallpaper/Arknight_Saileach.png new file mode 100644 index 0000000..1d85322 Binary files /dev/null and b/Wallpaper/Arknight_Saileach.png differ diff --git a/Wallpaper/Arknight_Shu.png b/Wallpaper/Arknight_Shu.png new file mode 100644 index 0000000..f18e55b Binary files /dev/null and b/Wallpaper/Arknight_Shu.png differ diff --git a/Wallpaper/Genshin_Furina_3.png b/Wallpaper/Genshin_Furina_3.png new file mode 100644 index 0000000..c53b092 Binary files /dev/null and b/Wallpaper/Genshin_Furina_3.png differ diff --git a/Wallpaper/PGR_Selena.png b/Wallpaper/PGR_Selena.png new file mode 100644 index 0000000..e781ddd Binary files /dev/null and b/Wallpaper/PGR_Selena.png differ diff --git a/Wallpaper/StarRail_Evernight.png b/Wallpaper/StarRail_Evernight.png new file mode 100644 index 0000000..95a135f Binary files /dev/null and b/Wallpaper/StarRail_Evernight.png differ diff --git a/Wallpaper/Wuthering_Cartethyia_2.png b/Wallpaper/Wuthering_Cartethyia_2.png new file mode 100644 index 0000000..695b28e Binary files /dev/null and b/Wallpaper/Wuthering_Cartethyia_2.png differ diff --git a/Wallpaper/Wuthering_Ciaconna.png b/Wallpaper/Wuthering_Ciaconna.png new file mode 100644 index 0000000..8016fee Binary files /dev/null and b/Wallpaper/Wuthering_Ciaconna.png differ diff --git a/Wallpaper/Wuthering_Iuno.png b/Wallpaper/Wuthering_Iuno.png new file mode 100644 index 0000000..79f7f57 Binary files /dev/null and b/Wallpaper/Wuthering_Iuno.png differ diff --git a/Wallpaper/Wuthering_Iuno_2.png b/Wallpaper/Wuthering_Iuno_2.png new file mode 100644 index 0000000..3f5bb44 Binary files /dev/null and b/Wallpaper/Wuthering_Iuno_2.png differ diff --git a/Wallpaper/Wuthering_Iuno_3.png b/Wallpaper/Wuthering_Iuno_3.png new file mode 100644 index 0000000..871cd84 Binary files /dev/null and b/Wallpaper/Wuthering_Iuno_3.png differ diff --git a/Wallpaper/Wuthering_Iuno_4.png b/Wallpaper/Wuthering_Iuno_4.png new file mode 100644 index 0000000..1ba3b86 Binary files /dev/null and b/Wallpaper/Wuthering_Iuno_4.png differ diff --git a/Wallpaper/Wuthering_Jinhsi_2.png b/Wallpaper/Wuthering_Jinhsi_2.png new file mode 100644 index 0000000..e821d4b Binary files /dev/null and b/Wallpaper/Wuthering_Jinhsi_2.png differ