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.
- Search for the emoji you want
- (optional) Select multiple emoji with
enterto insert the emoji directly
alt+cto copy it to the clipboard
How does it look?
Arch & Manjaro
A kind soul has packaged it as rofimoji-git. To, install, use
yaourt -S rofimoji-git.
rofimoji.py and move it somewhere on your path, for example
What else do you need:
- Python 3
- A font that can display emoji, for example EmojiOne or Noto Emoji
- xdotool for typing the emoji
- xsel to copy the emoji to the clipboard
For Ubuntu zesty:
sudo aptitude install python3 fonts-emojione xsel xdotool
Updating the emojis
This is only needed if a new Unicode version came out and you can't wait for the official update!
- Install Python 3 and
pip install -r requirements-dev.txt
extract_emojis.py- this downloads the complete list from https://emojipedia.org/emoji/, so don't do it too often!
- A new file
emojis.pyshould have been created. Open it and copy the contents
rofimoji.pyand replace the emoji list with the contents of
Why is it so pedestrian? Why not simply import from
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?