dot/.config/scriptrc/xclipimg.sh

6 lines
120 B
Bash
Raw Normal View History

2023-07-22 14:46:26 +02:00
xclipimg() {
filename=$1
mimetype="$(file $1 -b --mime-type)"
xclip -selection clipboard -t $mimetype -i $filename
}