Update 2022-12-23 19:19 OpenBSD/amd64

This commit is contained in:
c0dev0id 2022-12-23 19:19:15 +01:00
parent 278d422977
commit 5905c2a1b2
2 changed files with 11 additions and 5 deletions

View File

@ -15,16 +15,16 @@ then
read -r gallerydir
[ -z "$gallerydir" ] && exit 2
mkdir -p "$gallerydir"
echo -n "Add gallery description [y/N]: "
read -r gallerydescr
case $gallerydescr in
[yY]) cd $gallerydir && vim "index.txt"; ;;
[yY]) vim "${gallerydir}/index.txt"; ;;
esac
fi
mkdir -p "$gallerydir"
cp "$_imgpath" "$gallerydir/"
echo -n "Add image description? [y/N]: "

View File

@ -66,15 +66,21 @@ rotate_ccw() {
convert -rotate 270 "$1" "$1"
}
show_details() {
echo "$1"
exiftool "$1" | grep Date | tr ':' '-'
}
while read file
do
case "$1" in
"d") edit_image "$file" ;;
"e") edit_image "$file" ;;
"c") copy_to_clipboard "$file" ;;
"p") printf '%s\n' "$(readlink -f "$file")" ;;
"p") echo "$(readlink -f "$file")" ;;
"u") upload_to_paste "$file" ;;
"x") save_image "$file" ;;
"w") website-add-image-to-gallery $file ;;
"s") show_details "$file" ;;
"w") texec "website-add-image-to-gallery $file" ;;
"Right") rotate_cw "$file" ;;
"Left") rotate_ccw "$file" ;;
esac