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