From 7045aea8612704fa9f75a8d3d351b845444d01f6 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 28 Mar 2024 11:02:15 +0000 Subject: updates --- backup-home-to-linux-storage | 1 + music.sh | 2 +- resize_img_files_to_max_400.sh | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 backup-home-to-linux-storage create mode 100755 resize_img_files_to_max_400.sh 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/ diff --git a/music.sh b/music.sh index b9d105f..25f699e 100755 --- a/music.sh +++ b/music.sh @@ -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 + -- cgit v1.2.3