[go: up one dir, main page]

Skip to content

Assistant is a tool for helping me out to learn more in less time

License

Notifications You must be signed in to change notification settings

bijanbina/Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assistant

For the time being assistant is only a translator assist in my daily reading course. It exercise google translate as it core side to traslate selected text, ask for better translation and if it's not already in the "phrase book" prompt for append in the database.

Installation

  1. Create "AccountInfo.sh" (Google Login Cookies) by running

    createLogin.sh <email> <password>
    

    inside Scripts folder. As an example ./createLogin.sh 'lolo@gmail.com' 'lolo_as_password'

  2. Compile Qt project

  3. Create a shortcut for Script/Translate.sh.

    if you like to map it to your mouse button first create xbind configuration file by xbindkeys --defaults > ~/.xbindkeysrc then coustomize following lines and add it to your configuration file

    "/home/lolo/PathToAssistant/Scripts/Translate.sh"
      b:8
    "/home/lolo/PathToAssistant/Scripts/DirectTranslate.sh"
      Control + b:8
    

    To inform xbind your changes run

    killall xbindkeys;xbindkeys

  4. Add GSetting schema

    sudo cp Resources/org.binaee.assistant.gschema.xml /usr/share/glib-2.0/schemas/;sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
    
  5. Enjoy

Dependecies

All dependencies on Arch Linux can installed by running

sudo pacman -S qt5-base qt5-declarative qt5-quickcontrols dconf-editor sed

Acknowledgments

Assistant used following library and tools, I just want to mention that this conquer can't achieved without their affords.

  • Google Translate API
  • sed
  • wget
  • awk
  • qt
  • xrandr
  • D-Bus
  • GSetting
  • Inkscape
  • pdfunite
  • webupd8

About

Assistant is a tool for helping me out to learn more in less time

Resources

License

Stars

Watchers

Forks

Packages

No packages published