diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-07-17 17:00:06 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-07-17 17:00:06 +0200 |
commit | 769dcffdcadbdf7f203ac6512db2a2aefe9ab2cf (patch) | |
tree | e3675955f62bd717b599d25c92f308b00cda55b1 /files/sxiv | |
parent | 83e6281aaf1dc6cc8bc95a5095d76453b8f87a5c (diff) | |
download | configs-769dcffdcadbdf7f203ac6512db2a2aefe9ab2cf.tar.gz configs-769dcffdcadbdf7f203ac6512db2a2aefe9ab2cf.zip |
Wed 17 Jul 2019 05:00:08 PM CEST
Diffstat (limited to 'files/sxiv')
-rwxr-xr-x | files/sxiv/key-handler | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/files/sxiv/key-handler b/files/sxiv/key-handler index de6873a..dc677ea 100755 --- a/files/sxiv/key-handler +++ b/files/sxiv/key-handler @@ -24,10 +24,26 @@ case "$1" in text="" while read -r file do - text="$text""$(readlink -f "$file")""\n" + text="$text""$(readlink -f "$file")""\n" done echo -en "$text" | xsel -ib && dunstify "$(xsel -ob) copied to clipboard" ;; + "G") + images="" + tmpFolder="/tmp/sxiv/gifs/" + mkdir -p "$tmpFolder" + while read -r file + do + convert "$file" -resize 512x999999\> "$tmpFolder$file" + images="$images $tmpFolder$file" + done + delay=$(echo "" | dmenu -p "Delay of GIF?") + [ "$delay" ] || exit 0 + name=$(echo "" | dmenu -p "Name of GIF?") + [ "$name" ] || exit 0 + convert -delay "$delay" -loop 0 $images "$name.gif" + dunstify "Created $name.gif" ;; + "h") dunstify "\ w: Set as wallpaper. . @@ -41,6 +57,7 @@ d: Move file to litter. . n: Rename file. . N: Open in a new instance of sxiv. . g: Open in gimp. . +G: Make a gif out of selected images. . s: Create new image with different size. . S: Search image online. . c: Copy images to a chosen folder. . |