How often did you want to insert one of those Unicode emoji only to learn that there is no nice picker for Linux? Fear no more, this script uses the power of rofi to present exactly the picker you always wanted. Inserts the selected emoji directly, or copies it to the clipboard.
rofimoji.py
shift+enter
enter
to insert the emoji directly \
Hit alt+c
to copy it to the clipboardA kind soul has packaged it as rofimoji. To, install, use sudo pacman -Syu rofimoji
.
If rofimoji
is not yet synced to your distro’s repo, you can also install rofimoji-git from the AUR.
Download rofimoji.py
and move it somewhere on your path, for example /usr/local/bin
.
What else do you need:
For Ubuntu zesty: sudo aptitude install fonts-emojione python3 rofi xdotool xsel
\
For Arch: sudo pacman -Syu emoji-font python rofi xdotool xsel
This is only needed if a new Unicode version came out and you can’t wait for the official update!
pip install -r requirements-dev.txt
extract_emojis.py
- this downloads the complete list from https://unicode.org/emoji/charts-12.0/full-emoji-list.html, so don’t do it too often!emojis.py
should have been created. Open it and copy the contentsrofimoji.py
and replace the emoji list with the contents of emojis.py
emojis.py
?Because now you only have to download one file, and it works Additionally, we need no separate I/O just to load the emojis. This is good, right?