dotfiles/.local/bin/emojimenu
2025-05-26 01:04:13 -06:00

10 lines
296 B
Bash
Executable file

#!/bin/sh
# Get user selection via fuzzel from emoji file.
chosen="$(cut -d ';' -f1 ~/.local/share/misc/chars/* | fuzzel -d -l 16 -w 32 | sed "s/ .*//")"
# Exit if none chosen.
[ -z "$chosen" ] && exit
printf "%s" "$chosen" | wl-copy
notify-send "emojimenu" "'$chosen' copied to clipboard." &