Skip to main content

Speed reader in python

Project description

SpeedRead

About

Speed reader written in python. It reads text from the clipboard content (or xsel/xclip output). Supports some command line arguments and you can navigate within the text with the arrow keys.

I made this to integrate in my i3wm + zathura pdf reader workflow. zathura can copy text to the clipboard with a simple mouse selection, then just use a keybind to call the package with: $ python -m speedread. Fast and Easy.

Usage

Install with:

$ pip install --user speedread

Options:

SpeedRead [-h] [-w WPM] [-xclip] [-xsel] [-cb]

optional arguments: -h, --help show this help message and exit -w WPM, --wpm WPM words per Minute -xclip, --xclip use output from $ xclip -o -xsel, --xsel use output from $ xsel -cb, --clipboard use clipboard content

Additionally it also support some key binds:

  • j / k : decrease / increase wpm
  • h / l : go backward / forward one word Same idea with arrow keys

Integration with i3wm

Add this line to your i3wm config file:

for_window [class="Speedread"] floating enable

Them add a line to call this package with a key bind:

bindsym <KEY> python -m speedread &> /dev/null

DOTOs

  • Add more command line arguments
  • Make it prettier
  • Make it WM independent
  • Add option to read from STDIN
  • Select text in pdf without using the mouse

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speedread-0.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file speedread-0.2.tar.gz.

File metadata

  • Download URL: speedread-0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for speedread-0.2.tar.gz
Algorithm Hash digest
SHA256 08c49eafa55a813c5eba0298e22bb5868ad987cb7a436064f1c270c616ce22b4
MD5 74b6f6acbc0c284d5da3ffa19da28472
BLAKE2b-256 d2a993433229594456455254a5ce5e4ad31e44133d969755b8bdf54beb2e82d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page