[Unit]
Description=Take a screenshot
[Service]
Type=oneshot
ExecStart=/usr/bin/scrot %h/screenshots/%%Y-%%m-%%d_%%H-%%M-%%S.jpg
Environment=DISPLAY=:0
Environment=XAUTHORITY=%h/.Xauthority