Inspired by https://github.com/fdw/rofimoji but written as rofi-script instead of starting a separate rofi.
It automatically downloads the list of emojis when used for the first time. To avoid that, simply place
emoji.txt from this repository in
$HOME/.cache/ yourself. But don’t worry too much, the download is pretty quick (~350kb text file).
rofi -modi 'run,drun,emoji:/path/to/rofimoji/rofimoji.sh' -show emoji
Enter copies the selected emoji into the clipboard. Requires xsel to work.