#!/bin/bash

list="$(grep -v "#" ~/.local/share/script-data/emoji)"
if [ "$ROFI_RETV" != 0 ]; then
	c=$(echo "$1" | cut -f1)
	echo "$c" | tr -d '\n' | wl-copy
	notify-send "'$c' copied to clipboard."
	exit
fi

echo -ne "\0prompt\x1fChoose emoji\n"
printf "%s" "$list"