set -o pipefail
opt=$(cliphist list | rofi -config ~/.config/rofi/clipboard-menu/clipboard.rasi -dmenu -p ">>> " | cliphist decode)
ret=$?

echo $ret

if [ "$ret" == "0" ]; then
	wl-copy "$opt"
elif [ "$ret" == "10" ]; then
	cliphist delete-query "$opt"
fi
