Multiple scripts that are useful but don't deserve their own repository.
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.
multiple_scripts/copy_image.sh

10 lines
271 B

#!/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