💾 Archived View for ait.place › dot › bin › dunicode.txt captured on 2022-07-16 at 13:48:48.
-=-=-=-=-=-=-
#!/bin/sh # The famous "get a menu of emojis to copy" script. # Must have xclip installed to even show menu. xclip -h 2>/dev/null || exit 1 chosen=$(cut -d ';' -f1 $XDG_DATA_HOME/emoji | dmenu -i -l 20 | sed "s/ .*//") [ "$chosen" != "" ] || exit # If you run this command with an argument, it will automatically insert the character. if [ -n "$1" ]; then xdotool key Shift+Insert else echo "$chosen" | tr -d '\n' | xclip -selection clipboard fi