Browse Source

[sxiv] Add shotcut to copy a single image

The first image marked in sxiv will be the only one copied
master
Lucien Cartier-Tilet 3 weeks ago
parent
commit
6f8e85c65f
Signed by: phundrak GPG Key ID: BD7789E705CB8DCA
  1. 4
      .config/sxiv/exec/key-handler

4
.config/sxiv/exec/key-handler

@ -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…
Cancel
Save