dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

screenshot (211B)


      1 #!/bin/sh
      2 
      3 _FILE="$HOME/screenshot-$(date +%Y-%m-%dT%H:%M:%S).png"
      4 
      5 # grab screen region using imagemagick
      6 import $_FILE
      7 
      8 # add screenshot to clipboard
      9 xclip -selection clipboard -target image/png -i < "$_FILE"