Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 2.27 KB

annotate-screenshots.md

File metadata and controls

41 lines (25 loc) · 2.27 KB

Annotate Screenshots

An essential feature of Droplr and CloudApp: annotations. We want to edit our screenshots immediately and have those changes beamed right up to the cloud. Let's look at some options.

1. Screenshot + annotation software

If you need to, you can configure your screenshot executeable to automatically launch your favorite graphics editing software. For example, I had this working for a while before I found Flameshot, saved to my PATH as screenshot-annotate:

#!/bin/sh
sleep 0.2; scrot -s "$HOME/screenshots/%Y-%m-%d-%H%M%S_\$wx\$h.png" -e 'gimp $f'

2. Bind to a hotkey

This really varies per platform:

In my case I have Xmonad WM and simply updated my config to launch flameshot gui when I press certain keys.

3. Watch files

In this step, you want your system to re-upload the file to s3 every time it's created or changes within a specific directory (e.g. ~/screenshots).

The most cross-platform way:

  1. Install fswatch.
  2. Configure it to watch your screenshots dir
fswatch --event=Created --event Updated "$HOME/screenshots" | s3-upload --stdin