Smart screenshot blogging. Printscreen is a Plated^ component.
Assumes you are comfortable with the command line and requires the following installed.
- Python ( only for Twitter access )
sudo apt-get install python-pip
Commands above are for debian/ubuntu. For other operating systems, please the use the links provided.
- Go to Settings > Keyboard > Application Shortcuts
- Add a new shortcut command
/home/user/printscreen/printscreen.sh
- Assign the keyboard key combination to trigger this script
When you trigger the script, a screenshot of your desktop is taken and a text editor is launched.
Posts are written in Markdown, screenshots are kept in folders in /blog.
Screenshots are resized to thumbnail and pixel sizes, alongside the original full size image.
Every time you trigger the script, your new post is published to Github after you exit the text editor. This also applies to Twitter, if enabled; the script auto-tweets your screenshot and post.
Deleting the contents of the text file of post before you exit the text editor stops the script from publishing that post.
- Make sure the file printscreen.desktop has the correct paths in it.
- Run
printscreen.desktop.sh
This will install the script as a registered application, now you can take a screenshop and open with the printscreen application to post it.
- We will need pip so
sudo apt-get install python3-pip
- Run
pip3 install twython
- Go to https://apps.twitter.com
- Create a new app - You will need to give Twitter a mobile number for this to work
- Click on the Keys and Access Tokens tab
- Scroll down and click on Generate Access Token
- Create a
tweet.keys
file in root - Add these twitter keys on 4 separate lines
- Under Application Settings (scroll up)
- Consumer Key (API Key)
- Consumer Secret (API Secret)
- Under Your Access Token (scroll down)
- Access Token
- Access Token Secret
- Under Application Settings (scroll up)
Visit https://github.com/xriss/plated for plated documentation. See LICENSE for details.