You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
271 B
10 lines
271 B
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
#uses copyq to select image and copy it to clipboard for pasting
|
||
|
|
||
|
filename=$(realpath $1)
|
||
|
if [ -f "$filename" ];then
|
||
|
mime=$(mimetype "$filename" | awk -F ': ' '{print $2}')
|
||
|
/usr/bin/copyq write 0 "$mime" - < "$filename"
|
||
|
/usr/bin/copyq select 0
|
||
|
fi
|