Skip to content

Instantly share code, notes, and snippets.

@dafanasiev
Last active November 10, 2019 12:47
Show Gist options
  • Save dafanasiev/e91925af0c1fe1d27b60a44a28e9ecec to your computer and use it in GitHub Desktop.
Save dafanasiev/e91925af0c1fe1d27b60a44a28e9ecec to your computer and use it in GitHub Desktop.
#!/bin/bash
TMP_FILE=$(mktemp -u).png
gnome-screenshot -a -f ${TMP_FILE}
xclip -selection clip -t image/png ${TMP_FILE}
rm -f ${TMP_FILE}
234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment