Browse Source

[Bin] Fix rofi-emoji

master
Lucien Cartier-Tilet 2 months ago
parent
commit
50c45cbbf4
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
  1. 2
      org/config/bin.org

2
org/config/bin.org

@ -1255,7 +1255,7 @@ grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | \ @@ -1255,7 +1255,7 @@ grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | \
Also, let’s send a notification telling the user the emoji has been copied!
#+BEGIN_SRC bash
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"
notify-send -u low "$EMOJI"
#+END_SRC

Loading…
Cancel
Save