Last active
August 1, 2021 05:03
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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