#!/bin/sh

# Get user selection via fuzzel from emoji file.
chosen="$(cut -d ';' -f1 ~/.local/share/misc/chars/* | fuzzel -d | sed "s/ .*//")"

# Exit if none chosen.
[ -z "$chosen" ] && exit

printf "%s" "$chosen" | wl-copy
notify-send "emojimenu" "'$chosen' copied to clipboard." &
