config.phundrak.com/.local/bin/rofi-emoji

8 lines
359 B
Plaintext
Raw Normal View History

#!/usr/bin/env fish
grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
2019-10-23 10:00:28 +00:00
set emoji (xclip -o -selection clipboard | tr -d '\n')
test -z "$emoji" && notify-send "No emoji copied" -u low && exit
2019-10-23 10:00:28 +00:00
set -a emoji "copied to clipboard"
pgrep -x dunst >/dev/null && notify-send -u low $emoji