diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-10-28 08:41:26 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-10-28 08:41:26 -0400 |
| commit | 6ba48b27339d47732519476333712bb4b2cde87f (patch) | |
| tree | 94c579c6003ced8c5ea9215fea514cdb89321e17 /.config/sxiv | |
| parent | a360fadd5fd95acf954eac8b15803ff05ab9512a (diff) | |
| download | eibhear-6ba48b27339d47732519476333712bb4b2cde87f.tar.gz eibhear-6ba48b27339d47732519476333712bb4b2cde87f.tar.zst eibhear-6ba48b27339d47732519476333712bb4b2cde87f.zip | |
fix #1366
Diffstat (limited to '.config/sxiv')
| l--------- | .config/sxiv | 1 | ||||
| -rwxr-xr-x | .config/sxiv/exec/key-handler | 33 |
2 files changed, 1 insertions, 33 deletions
diff --git a/.config/sxiv b/.config/sxiv new file mode 120000 index 0000000..4252964 --- /dev/null +++ b/.config/sxiv @@ -0,0 +1 @@ +nsxiv
\ No newline at end of file diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler deleted file mode 100755 index 4c78f18..0000000 --- a/.config/sxiv/exec/key-handler +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -while read -r file -do - case "$1" in - "w") setbg "$file" & ;; - "c") - [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Copy file(s) to where?" | sed "s|~|$HOME|g")" - [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit - cp "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file copied to $destdir." & - ;; - "m") - [ -z "$destdir" ] && destdir="$(sed "s/#.*$//;/^\s*$/d" ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | awk '{print $2}' | dmenu -l 20 -i -p "Move file(s) to where?" | sed "s|~|$HOME|g")" - [ ! -d "$destdir" ] && notify-send "$destdir is not a directory, cancelled." && exit - mv "$file" "$destdir" && notify-send -i "$(readlink -f "$file")" "$file moved to $destdir." & - ;; - "r") - convert -rotate 90 "$file" "$file" ;; - "R") - convert -rotate -90 "$file" "$file" ;; - "f") - convert -flop "$file" "$file" ;; - "y") - printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard && - notify-send "$file copied to clipboard" & ;; - "Y") - 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." ;; - "g") ifinstalled gimp && setsid -f gimp "$file" ;; - "i") notify-send "File information" "$(mediainfo "$file" | sed "s/[ ]\+:/:/g;s/: /: <b>/;s/$/<\/b>/" | grep "<b>")" ;; - esac -done |
