Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- text=`xsel -o`
- if [ "$text" == "" ]; then
- exit 0
- fi
- translated=`~/Dropbox/Scripts/yatranslate/yatranslate.py "$text"`
- lang="`echo $translated | cut -d "~" -f1`"
- text="`echo $translated | cut -d "~" -f2`"
- notify-send "$lang" "$text"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement