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.

15 lines
581 B

  1. #!/bin/bash
  2. #cat ~/.emoji | dmenu -i -l 10 -m 0 -fn 'Inconsolata:size=10' -nb '#222222' -nf '#bbbbbb' -sb '#005577' -sf '#eeeeee' -p 'Emoji: '
  3. chosen=$(grep -v "#" ~/.emoji | dmenu -i -l 20 -m 0 -fn 'Inconsolata:size=10' -nb '#222222' -nf '#bbbbbb' -sb '#005577' -sf '#eeeeee' -p 'emoji: ')
  4. [ "$chosen" != "" ] || exit
  5. c=$(echo "$chosen" | sed "s/ .*//")
  6. echo "$c" | tr -d '\n' | xclip -selection clipboard
  7. notify-send "'$c' copied to clipboard." &
  8. s=$(echo "$chosen" | sed "s/.*; //" | awk '{print $1}')
  9. echo "$s" | tr -d '\n' | xclip
  10. notify-send "'$s' copied to primary." &