Skip to content

Instantly share code, notes, and snippets.

@hi2rashid
Created March 5, 2020 14:31
Show Gist options
  • Save hi2rashid/f514c27c2d0eb175812dbbc1e04238a8 to your computer and use it in GitHub Desktop.
Save hi2rashid/f514c27c2d0eb175812dbbc1e04238a8 to your computer and use it in GitHub Desktop.
AutoScreenshot
#!/bin/bash
LOCATION="$(date +/home/rashid/Pictures/workday_shots/%Y/%m/%d)"
mkdir -p $LOCATION
cd $LOCATION
DISPLAY=:0 scrot '%Y-%m-%d-%H%M.jpg' -q 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment