A simple emoji picker for rofi
Switch branches/tags
Nothing to show
Clone or download
fdw Update dev dependencies
Thanks to Github for pointing out a vulnerability in the old requests
version.
The good news is that this is only relevant for developers, but not for
users, as they use the pre-packaged emojis.
Latest commit 8c2278b Oct 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add gitignore Oct 29, 2017
LICENSE Update license Jun 16, 2018
extract_emojis.py Automatically retry to fetch data Jun 16, 2018
readme.md Add install instructions for Arch Sep 2, 2018
requirements-dev.txt Update dev dependencies Oct 30, 2018
rofimoji.py Update rofimoji.py Jul 23, 2018
screenshot.png Add screenshot to readme Jan 23, 2018

readme.md

Emoji-Picker

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.

Usage

  1. Run rofimoji.py
  2. Search for the emoji you want
  3. (optional) Select multiple emoji with alt+enter
    • Hit enter to insert the emoji directly
    • Hit alt+c to copy it to the clipboard
  4. 🎠

How does it look?

Screenshot of rofimoji

Installation

Arch & Manjaro

A kind soul has packaged it as rofimoji-git. To, install, use yaourt -S rofimoji-git.

From sources

Download rofimoji.py and move it somewhere on your path, for example /usr/local/bin.

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!

  1. Install Python 3 and pip install -r requirements-dev.txt
  2. Run extract_emojis.py - this downloads the complete list from https://emojipedia.org/emoji/, so don't do it too often!
  3. A new file emojis.py should have been created. Open it and copy the contents
  4. Open rofimoji.py and replace the emoji list with the contents of emojis.py

FAQ

Why is it so pedestrian? Why not simply import from 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?