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