/rofi-emoji-picker

Simple emoji picker script for rofi

Primary LanguagePython

rofi-emoji-picker

Simple emoji picker script for rofi.

Get started

Required applications

Clone the repo

git clone https://github.com/momiji-w/rofi-emoji-picker.git
cd rofi-emoji-picker

Change permissions of the script

chmod +x script.sh

Run the script

./script.sh

Using with Desktop environment

Example with awesomewm

adding shortcut key to the config (super + '.' in this example).

awful.key({ modkey }, ".",
  function()
    awful.spawn.with_shell(
      "xdotool type $(cat ~/.local/share/emoji_list.txt | rofi -dmenu -p 'Emoji 😊' -w $(xdo id) | awk '{ print $2 }')")
  end,
  { description = "emoji picker", group = "client" }
)

edit the location of the emoji list to the desired location.

For Wayland Users

Wayland users can replace the tools used the here with wofi and wtype.

Example with Hyprland

$emoji = wtype $(cat ~/.local/share/emoji_list.txt | wofi -S dmenu -p 'Emoji:' | awk '{ print $2 }')
bind = $mainMod, B, exec, $emoji

Credits

shout out to BuonOmo for their list of UTF-8 emoji list.