System-wide character-picker: emoji and unicode shell extensions for rofi
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.

rofiemoji.sh 507B

1 year ago
2 months ago
1 year ago
1234567891011121314151617181920212223
  1. #!/bin/sh
  2. DIR="$HOME/.config/rofiemoji-rofiunicode/lists"
  3. # URL="https://github.com/Kabouik/rofiemoji/raw/master/unicode.txt"
  4. # FILE="$DIR/unicode.txt"
  5. VER='12.0'
  6. URL="https://www.unicode.org/Public/emoji/${VER}/emoji-test.txt"
  7. FILE="$DIR/emojis.txt"
  8. if [ ! -r $FILE ]
  9. then
  10. if [ ! -d $DIR ]; then mkdir $DIR; fi
  11. curl $URL | grep -v '^#' | grep ' ; fully-qualified ' | cut -d'#' -f2 > $FILE
  12. fi
  13. if [ "$@" ]
  14. then
  15. smiley=$(echo $@ | cut -d' ' -f1)
  16. echo -n "$smiley" | xsel -bi
  17. exit 0
  18. fi
  19. cat $FILE