This commit is contained in:
Luke Smith 2022-04-10 15:01:22 -04:00
parent 0818097806
commit 35316c9c00
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -1,5 +1,5 @@
#!/bin/sh
while read file
while read -r file
do
case "$1" in
"w") setbg "$file" & ;;
@ -20,7 +20,7 @@ do
"f")
convert -flop "$file" "$file" ;;
"y")
echo -n "$file" | tr -d '\n' | xclip -selection clipboard &&
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 &&