Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
364 B

  1. #!/bin/sh
  2. chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -l 10 | sed "s/ .*//")
  3. [ -z "$chosen" ] && exit
  4. if [ -n "$1" ]; then
  5. xdotool type "$chosen"
  6. else
  7. printf "$chosen" | xclip -selection clipboard
  8. printf %s "$chosen" | xdotool type --clearmodifiers --file -
  9. notify-send -a "Character copied to clipboard" "'$chosen' copied to clipboard." &
  10. fi