Guest User

Untitled

a guest
Mar 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #! /usr/bin/env zsh
  2.  
  3. local emoji
  4. emoji=($(rofi -dmenu -i -p emoji -kb-custom-1 Ctrl+c < ~/.local/share/emoji.txt))
  5. ret=$?
  6. if [[ $ret -eq 0 ]]; then
  7. xdotool type --clearmodifiers ${emoji[1]}
  8. elif [[ $ret -eq 10 ]]; then
  9. xclip -i -sel clipboard <<< ${emoji[1]}
  10. fi
Add Comment
Please, Sign In to add comment