Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh
|
|
|
|
chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -l 10 | sed "s/ .*//")
|
|
|
|
[ -z "$chosen" ] && exit
|
|
|
|
if [ -n "$1" ]; then
|
|
xdotool type "$chosen"
|
|
else
|
|
printf "$chosen" | xclip -selection clipboard
|
|
|
|
printf %s "$chosen" | xdotool type --clearmodifiers --file -
|
|
notify-send -a "Character copied to clipboard" "'$chosen' copied to clipboard." &
|
|
fi
|