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.
23 lines
503 B
23 lines
503 B
#!/bin/sh |
|
|
|
DIR="$HOME/.config/rofiemoji-rofiunicode" |
|
URL="https://github.com/Kabouik/rofiemoji/raw/master/unicode.txt" |
|
FILE="$DIR/unicode.txt" |
|
# VER='11.0' |
|
# URL="https://www.unicode.org/Public/emoji/${VER}/emoji-test.txt" |
|
# FILE="$DIR/emojis.txt" |
|
|
|
if [ ! -r $FILE ] |
|
then |
|
if [ ! -d $DIR ]; then mkdir $DIR; fi |
|
curl $URL | grep -v '^#' | grep ' ; fully-qualified ' | cut -d'#' -f2 > $FILE |
|
fi |
|
|
|
if [ "$@" ] |
|
then |
|
smiley=$(echo $@ | cut -d' ' -f1) |
|
echo -n "$smiley" | xsel -bi |
|
exit 0 |
|
fi |
|
|
|
cat $FILE
|
|
|