#!/bin/sh emojis=~/.local/share/emojis chosen=$(grep -v '^$\|#' "$emojis" | dmenu -l 30 | cut -d' ' -f1) [ -z "$chosen" ] || xdotool type "$chosen"