dotfiles/files/.config/i3/bin/yadus-i3-clip

8 lines
175 B
Bash
Executable file

#!/bin/bash
clip_content=$(/usr/bin/xclip -selection clipboard -out)
if [ -z "$clip_content" ]; then
exit 1
fi
"$(dirname $(readlink -f "$0"))/yadus-i3" "$clip_content"