10 lines
226 B
Bash
Executable File
10 lines
226 B
Bash
Executable File
#!/bin/bash
|
|
|
|
selection=$(cat)
|
|
[[ -z "$selection" ]] && exit 0
|
|
|
|
pkill -u $USER -x xclip
|
|
|
|
if [[ "$selection" == file://* && "$selection" == *.png ]]; then
|
|
echo -n "$selection" | xclip -selection clipboard -t text/uri-list
|
|
fi |