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