Skip to content

Instantly share code, notes, and snippets.

@vasi
Last active January 4, 2026 07:46
Show Gist options
  • Select an option

  • Save vasi/e460262fdd26a6ad8eaec2b2f0df2bad to your computer and use it in GitHub Desktop.

Select an option

Save vasi/e460262fdd26a6ad8eaec2b2f0df2bad to your computer and use it in GitHub Desktop.
#dalitrixie
#!/bin/sh
emoji="$(perl -ne 'print "$1 $2\n" if /fully-qualified.*# (\S+) E\S+ (.*)/' \
/usr/share/unicode/emoji/emoji-test.txt \
| rofi -dmenu -i -p 'Emoji' \
| awk '{print $1}')"
if [ -n "$WAYLAND_DISPLAY" ]; then
echo -n "$emoji" | wl-copy
wtype -- "$emoji"
else
echo -n "$emoji" | xclip -selection clipboard
sleep 0.1
xdotool key --clearmodifiers shift+Insert
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment