Fix magick related actions in nsxiv (#1449)

This commit is contained in:
Alessio Artoni 2025-02-28 15:57:16 +01:00 committed by GitHub
parent e83e5ecef0
commit 53f1df79e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,11 +14,11 @@ do
mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." & mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." &
;; ;;
"r") "r")
magick -rotate 90 "$file" "$file" ;; magick "$file" -rotate 90 "$file" ;;
"R") "R")
magick -rotate -90 "$file" "$file" ;; magick "$file" -rotate -90 "$file" ;;
"f") "f")
magick -flop "$file" "$file" ;; magick "$file" -flop "$file" ;;
"y") "y")
printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard && printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard &&
notify-send "$file copied to clipboard" & ;; notify-send "$file copied to clipboard" & ;;