parsifal/screenshot.service

8 lines
190 B
Desktop File

[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