#!/bin/sh chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -l 30 -i | sed "s/ .*//") [ -z "$chosen" ] && exit if [ -n "$1" ]; then xdotool type "$chosen" else printf "$chosen" | xclip -rmlastnl notify-send -t 2000 "'$chosen' copied to clipboard" & fi