dotfiles/.local/bin/emojimenu
2025-08-12 23:01:17 -06:00

10 lines
308 B
Bash
Executable file

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