Skip to content

Instantly share code, notes, and snippets.

@jeremija
Created November 28, 2015 16:42
Show Gist options
  • Save jeremija/aea9b8793751fab69a95 to your computer and use it in GitHub Desktop.
Save jeremija/aea9b8793751fab69a95 to your computer and use it in GitHub Desktop.
Create a screenshot to clipboard
#!/bin/bash
# takes a screenshot of a window or region and copy to clipboard as png
#
# prerequisites:
# - maim
# - slop
# - xclip with -target support (available in AUR)
#
# @author https://github.com/jeremija
maim --format=png --color=0.4,0.2,0.2,0.3 --highlight --nodecorations --select \
/dev/stdout | xclip -selection clipboard -target image/png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment