[Bin] Fix rofi-emoji

This commit is contained in:
Lucien Cartier-Tilet 2022-05-19 18:22:31 +02:00
parent 53de06b844
commit 50c45cbbf4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1255,7 +1255,7 @@ grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | \
Also, lets send a notification telling the user the emoji has been copied! Also, lets send a notification telling the user the emoji has been copied!
#+BEGIN_SRC bash #+BEGIN_SRC bash
EMOJI=$(xclip -o -selection clipboard | tr -d '\n') EMOJI=$(xclip -o -selection clipboard | tr -d '\n')
test -z "$EMOJI" && notify-send "No emoji copied -u low && exit" test -z "$EMOJI" && notify-send "No emoji copied" -u low && exit
EMOJI="$EMOJI copied to clipboard" EMOJI="$EMOJI copied to clipboard"
notify-send -u low "$EMOJI" notify-send -u low "$EMOJI"
#+END_SRC #+END_SRC