[sxiv] Add shotcut to copy a single image
The first image marked in sxiv will be the only one copied
This commit is contained in:
parent
3de5254050
commit
6f8e85c65f
@ -21,4 +21,8 @@ switch "$argv[1]"
|
||||
for f in $FILES
|
||||
convert -rotate 270 "$f" "$f"
|
||||
end
|
||||
case "y"
|
||||
set FILE $FILES[1]
|
||||
set TYPE (file -i $FILE | sed -r 's|.*(image/[a-z]+);.*|\1|')
|
||||
xclip -sel clip -t "$TYPE" -i "$FILE"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user