Skip to content

Instantly share code, notes, and snippets.

@justsml
Created March 28, 2016 22:29
Show Gist options
  • Save justsml/74dc77c6278617e093d6 to your computer and use it in GitHub Desktop.
Save justsml/74dc77c6278617e093d6 to your computer and use it in GitHub Desktop.
Linux/Debian Clone of Mac OSX 'Capture Screen Region' feature (map to similar Cmd+Ctrl+Shift+4)
#!/bin/bash
# Clone of Capture Screen Region on Mac OSX (map to similar Cmd-Ctrl-Shift-4)
# *** Requirements ***
# shutter - `apt-get install shutter`
# copyq - download from https://github.com/hluk/CopyQ/releases
shutter --select --no_session --exit_after_capture --output=/tmp/screenshot-surrent.png
copyq write image/png - < /tmp/screenshot-surrent.png && copyq select 0
rm /tmp/screenshot-surrent.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment