|
|
- #!/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
|