aports

Custom Alpine Linux aports

git clone https://git.8pit.net/aports.git

 1#!/bin/sh
 2
 3# https://www.unicode.org/Public/emoji/15.0/emoji-test.txt
 4EMOJI_TEST="/usr/share/bemenu-emoji/emoji-test.txt"
 5
 6emoji=$(awk -F '# ' '/fully-qualified/ { print $2 }' "${EMOJI_TEST}" | \
 7	awk -F 'E[0-9][0-9]*.[0-9][0-9]* ' '/E[0-9][0-9]*\.[0-9][0-9]*/ { print $1 $2 }' | \
 8	bemenu -p emoji -l 15 "$@" | cut -d ' ' -f1)
 9
10[ -n "${emoji}" ] || exit
11exec wtype "${emoji}"