Smart screenshot blogging
HTML CSS Shell Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Printscreen

Smart screenshot blogging. Printscreen is a Plated^ component.

Table of contents

Dependencies

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.

Setting up the script

  1. Go to Settings > Keyboard > Application Shortcuts
  2. Add a new shortcut command /home/user/printscreen/printscreen.sh
  3. 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 orginal 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.

Enable posting to Twitter

  1. Run pip install twython
  2. Go to https://apps.twitter.com
  3. Create a new app - You will need to give Twitter a mobile number for this to work
  4. Click on the Keys and Access Tokens tab
  5. Scroll down and click on Generate Access Token
  6. Create a tweet.keys file in root
  7. Add these twitter keys on 4 seperate 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

Would you like to know more?

Visit https://github.com/xriss/plated for plated documentation. See LICENSE for details.