Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
/ dmenu-emoji Public archive

Search an emoji by name and copy it to the clipboard [i3, dmenu, rofi]

License

Notifications You must be signed in to change notification settings

porras/dmenu-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

I no longer mantain this repository (or use this script). It works for all I know, but I'm using something else so I no longer mantain it. Feel free to keep using it if it works for you, fork it if you need to fix anything, or consider one of the alternatives (see below). For this reasons this repo is archived and read-only.

dmenu-emoji 💃

Search an emoji by name and copy it to the clipboard. Works best with a dmenu variant that does fuzzy search such as rofi, but it's compatible with plain dmenu.

If possible, it also sends a desktop notification for better user feedback.

Screenshot of usage with rofi

[Click the screenshot for a 4MB GIF of how the emoji in the header was added]

Usage with i3

Download dmenu-emoji.sh, make sure it's executable (chmod + x <file>), and store it somewhere in your home directory (or in your $PATH if you prefer). Assign a keystroke in your i3 configuration:

# ~/.config/i3/config

bindsym $mod+space exec path/to/dmenu-emoji.sh

dmenu-emoji.sh is the only file you need, the rest of the files in this repository are scripts to generate that one, which you don't need unless you want to modify it (PRs welcome!).

Tweeking the dmenu command

By default, dmenu is called. If you want to use a different menu or pass some option to it, you can use the list and copy subcommands:

# ~/.config/i3/config

bindsym $mod+space exec dmenu-emoji.sh list | rofi -dmenu -p 'Emoji: ' | dmenu-emoji.sh copy

Similar scripts

  • bemoji. Bash based, supports copying or typing emoji on both Wayland and X11. Remembers your favorite selections.
  • emoji.sh. One liner, requests emojis each time, no autocomplete
  • rofimoji. Python-based, rofi only, can insert directly instead of copy&paste
  • emoji-rofi-menu. Rofi only, can insert directly
  • rofi-emoji. Python-based (but generates a bash script so Python is not used each time), rofi only, inserts-directly
  • dmenu-fontawesome. Search an fontawesome icon by name and copy it to the clipboard.

It takes very little time to write so there are probably more 😅

About

Search an emoji by name and copy it to the clipboard [i3, dmenu, rofi]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published