diff options
author | Matthew Lemon <y@yulqen.org> | 2024-03-28 11:02:15 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-03-28 11:02:22 +0000 |
commit | 7045aea8612704fa9f75a8d3d351b845444d01f6 (patch) | |
tree | ca764893fe5e48134d9f97ebf21bac50991d3a2f | |
parent | ffb352c90114443c3aee338ea8277713e87db506 (diff) |
updates
-rw-r--r-- | backup-home-to-linux-storage | 1 | ||||
-rwxr-xr-x | music.sh | 2 | ||||
-rwxr-xr-x | resize_img_files_to_max_400.sh | 15 |
3 files changed, 17 insertions, 1 deletions
diff --git a/backup-home-to-linux-storage b/backup-home-to-linux-storage new file mode 100644 index 0000000..e2a9f6a --- /dev/null +++ b/backup-home-to-linux-storage @@ -0,0 +1 @@ +rsync -av --exclude='.cache' --exclude='.fgfs' --exclude='vms' /home/lemon/ /mnt/home_backup_mar24/ @@ -6,7 +6,7 @@ ### ----------------------------------------------------------------- ### Global variables: ### ----------------------------------------------------------------- -DIR=~/annex/Music +DIR=~/music_mnt/annex/Music PLAYER=mpv DMENU='dmenu -i -l 30 -fn Iosevka-12 -nb #b96dbf -nf white' diff --git a/resize_img_files_to_max_400.sh b/resize_img_files_to_max_400.sh new file mode 100755 index 0000000..cceeae7 --- /dev/null +++ b/resize_img_files_to_max_400.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Navigate to the directory containing your images +cd /home/lemon/code/html/jo-rebrand/img/ + +# Loop through each image file +for file in *.jpg *.JPG *.png *.gif; do + # Check if the file exists and is a regular file + if [ -f "$file" ]; then + # Resize the image using ImageMagick's convert command + convert "$file" -resize '400x>' "$file" + echo "Resized $file" + fi +done + |