Emoji Picker using Rofi 😎

Photo of author

I love using emojis 🀩. They help express different kinds of emotions in text. It also makes the text a bit less boring than usual.

Unfortunately, I can’t seem to insert emojis in the WordPress editor by typing β€œ:” and emoji names. It doesn’t support emoji selectors like that 😒.

Turns out other Operating Systems like Windows πŸͺŸ and Mac 🍎 have their own native emoji selectors. My Linux setup didn’t come with one pre-configured obviously.

After a quick research, I found out that it’s not that difficult to configure an emoji picker on i3wm. There are plenty of emoji-picker libraries you can install that just works out of the box. You just need to bind a key to invoke the tool.

rofi-emoji

I decided to give rofi-emoji a try. Here is the link to its GitHub repo: https://github.com/Mange/rofi-emoji. I use Ubuntu and there is no official repository support for this package. I had to clone the library and build it from scratch. The instructions are there in the README file.

Once you have the package installed (don’t forget to install rofi), simply bind some key to invoke the emoji picker.

I added the following line in my i3 config ~/.config/i3/config to bind MOD+Period with the emoji picker:

bindsym $mod+period exec --no-startup-id rofi -modi emoji -show emoji

With that, I can now invoke an emoji picker anywhere in my system πŸŽ‰. By default, it inserts the emoji at the cursor if possible, and copies the emoji to the clipboard. Good defaults.

So far this has been a useful customization. I found that the Dracula theme πŸ§› for Rofi looks quite nice with the picker so I opted to use that. It’s easy to use different themes with rofi. I simply updated the command to:

rofi -modi emoji -show emoji -theme-str '@theme "dracula.rasi"'

Conclusion

Now that I can insert emojis in text easily, I tried inserting it in text files on the terminal, but my urxvt failed to render it properly 😀. I need to fix font issues on my system. The problems are never-ending.

Oh well. Until next time,

Samiul

Oh hi there πŸ‘‹
It’s nice to meet you.

Sign up to receive updates in your inbox once a week.

I don’t spam! You can always unsubscribe if you don't like it.

πŸ—žοΈ Don’t miss the latest posts!

Subscribe to the Weekly Newsletter

I won't spam. Promise!

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments