Simple emoji picker script for rofi.
git clone https://github.com/momiji-w/rofi-emoji-picker.git
cd rofi-emoji-picker
chmod +x script.sh
./script.sh
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.
Wayland users can replace the tools used the here with wofi and wtype.
$emoji = wtype $(cat ~/.local/share/emoji_list.txt | wofi -S dmenu -p 'Emoji:' | awk '{ print $2 }')
bind = $mainMod, B, exec, $emoji
shout out to BuonOmo for their list of UTF-8 emoji list.