Move all scripts to 'src' directory

This commit is contained in:
2024-12-21 00:52:15 +00:00
parent b32ca11042
commit 1dc275d8a8
26 changed files with 0 additions and 0 deletions

7
src/clean_files.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# script for looping through each file in a directory, opening it with mimeopen, and upon the closing of the file viewer, asking the user whether or not to delete the image, and deleting if "y" received
for file in *
do
mimeopen "$file" && read -p "Delete file? [y/n]: " ans && [ "$ans" = "y" ] && rm "$file"
done