10 lines
296 B
Bash
Executable file
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." &
|