fix screenshot.service

This commit is contained in:
Tomáš Mládek 2024-09-20 15:29:04 +02:00
parent 95759ca363
commit da2ef782fa

View file

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