Timed systemd unit for lockscreen background update
This commit is contained in:
parent
63944ba313
commit
0c7efade52
2 changed files with 17 additions and 0 deletions
7
Perso/systemd_timers/lockScreenUpdate.service
Normal file
7
Perso/systemd_timers/lockScreenUpdate.service
Normal 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'
|
10
Perso/systemd_timers/lockScreenUpdate.timer
Normal file
10
Perso/systemd_timers/lockScreenUpdate.timer
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Updates lockscreen background
|
||||||
|
Requires=lightdm.service
|
||||||
|
After=lightdm.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnActiveSec=5min
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Add table
Reference in a new issue