Update to current state
This commit is contained in:
@ -16,6 +16,8 @@ exec 2>/dev/null
|
||||
filename=$(basename -- "$1")
|
||||
filesize=$(du -Hh -- "$1" | cut -f 1)
|
||||
geometry="${2}x${3}"
|
||||
#TODO: imrpove for multiple date formats
|
||||
#currently just picks the first date that is not a profile or file date using exiftool (no one coherent standard for date in exif metadata is used)
|
||||
date_shot="$(exiftool -- "$1" | grep 'Date' | grep -vE '(Profile|File)' | head -n1 | cut -d: -f1 --complement)"
|
||||
|
||||
echo "${filesize}${s}${geometry}${s}${filename}"
|
||||
|
||||
echo "${filesize}${s}${geometry}${s}${filename}${s}${date_shot}"
|
||||
|
@ -26,7 +26,7 @@ do
|
||||
readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
|
||||
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
|
||||
"d")
|
||||
[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
||||
[ "$(printf "No\\nYes" | dmenu -n -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
||||
"g") ifinstalled gimp && setsid -f gimp "$file" ;;
|
||||
"i") notify-send "File information" "$(mediainfo "$file")" ;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user