1234567891011121314151617181920212223 |
- #!/bin/sh
-
- DIR="$HOME/.config/rofiemoji"
- # 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
|