sync of vim and sxiv

This commit is contained in:
Luke Smith
2019-11-23 15:35:16 -05:00
parent 8f608b405f
commit 2f83feeccd
2 changed files with 7 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
while read file
do
case "$1" in
@@ -23,7 +23,7 @@ do
echo -n "$file" | xclip -selection clipboard &&
notify-send "$file copied to clipboard" & ;;
"Y")
echo -n "$(readlink -f "$file")" | xclip -selection clipboard &&
readlink -f "$file" | 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." ;;