Skip to content

Instantly share code, notes, and snippets.

@kvgc
Last active August 1, 2021 05:03
Show Gist options
  • Save kvgc/d3d966d91aa081ce3312e0ed13334a2b to your computer and use it in GitHub Desktop.
Save kvgc/d3d966d91aa081ce3312e0ed13334a2b to your computer and use it in GitHub Desktop.
When a url is copied to the clipboard, the following command runs the sumy summarizer script and copies the output back to the clipboard
### Usage: Copy a web url and run this script
### Optional: Create a keyboard shortcut
### Dependencies: xclip(apt install xclip), sumy(pip install sumy)
sumy lex-rank –length=10 –url="$(xclip -o)" | xclip -selection c && notify-send "copied to clipboard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment