Advertisement
v1ral_ITS

awesome dictionary shell script

Jul 19th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. test -e /tmp/yadpipe03 && rm -f /tmp/yadpipe03
  4.  
  5. # Named pipe initialization
  6. export PIPE_03=/tmp/yadpipe03
  7. mkfifo $PIPE_03
  8. exec 3<> $PIPE_03
  9.  
  10. if yad --title="ITS Solutions"  --question --text "<b>Yes for terminal look up</b>" --button="Terminal Look-up"     --button="Dictionary GUI"; then
  11. curl dict.org/d:"$(zenity --title "Curl Dictionary Lookup"  --entry)"
  12. else
  13. xfce4-dict
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement