parsifal/screenshot.service

9 lines
190 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Take a screenshot
[Service]
Type=oneshot
2024-09-20 15:29:04 +02:00
ExecStart=/usr/bin/scrot %h/screenshots/%%Y-%%m-%%d_%%H-%%M-%%S.jpg
Environment=DISPLAY=:0
Environment=XAUTHORITY=%h/.Xauthority