do not copy newline; sxiv changes
This commit is contained in:
parent
c7e3d61753
commit
c22f0482da
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
while read file
|
while read file
|
||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
@ -22,13 +22,14 @@ do
|
||||||
"f")
|
"f")
|
||||||
convert -flop "$file" "$file" ;;
|
convert -flop "$file" "$file" ;;
|
||||||
"y")
|
"y")
|
||||||
echo -n "$file" | xclip -selection clipboard &&
|
echo -n "$file" | tr -d '\n' | xclip -selection clipboard &&
|
||||||
notify-send "$file copied to clipboard" & ;;
|
notify-send "$file copied to clipboard" & ;;
|
||||||
"Y")
|
"Y")
|
||||||
readlink -f "$file" | xclip -selection clipboard &&
|
readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&
|
||||||
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
|
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
|
||||||
"d")
|
"d")
|
||||||
[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;
|
||||||
"g") ifinstalled gimp && gimp "$file" & ;;
|
"g") ifinstalled gimp && setsid -f gimp "$file" ;;
|
||||||
|
"i") notify-send "File information" "$(mediainfo "$file")" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue