others/emojis.sh

26 lines
583 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# some fun with ascii emojis ##
# emojis.sh by @root_informatica.
# emojis file path.
EMJ="$HOME/.emojis"
# check if runing inside a terminal.
if [ -t 0 ]; then
# pull up the file with fzfmenu and store in a termporary location.
MENU=fzfmenu.sh
$MENU < $EMJ | cut -d ' ' -f 3- > /tmp/emoji
else
# pull up the file with xmenu.sh and send to clipboard.
MENU=xmenu.sh
$MENU < $EMJ | cut -d ' ' -f 3- | xclip -sel c
fi
## .emojis file example:
# acid ⊂(◉‿◉)つ
# afraid (ㆆ_ㆆ)
# angel ☜(⌒▽⌒)☞
# angry x (•`_´•)