1
0
Fork 0

Timed systemd unit for lockscreen background update

This commit is contained in:
trotFunky 2020-05-17 14:26:09 +01:00
parent b07934d774
commit 72cba0d03c
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,7 @@
[Unit]
Description=Updates lockscreen background
[Service]
Type=oneshot
User=trotfunky
ExecStart=/bin/bash -c 'DISPLAY=:0 scrot -z ~/Pictures/lock.png ; convert -blur 0x3 ~/Pictures/lock.png ~/Pictures/lock.png'

View file

@ -0,0 +1,10 @@
[Unit]
Description=Updates lockscreen background
Requires=lightdm.service
After=lightdm.service
[Timer]
OnActiveSec=5min
[Install]
WantedBy=timers.target