From 0c7efade527f58c7b40f26dcdaf3b58df4a4cf0a Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Thu, 24 Jan 2019 23:29:58 +0100 Subject: [PATCH] Timed systemd unit for lockscreen background update --- Perso/systemd_timers/lockScreenUpdate.service | 7 +++++++ Perso/systemd_timers/lockScreenUpdate.timer | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Perso/systemd_timers/lockScreenUpdate.service create mode 100644 Perso/systemd_timers/lockScreenUpdate.timer diff --git a/Perso/systemd_timers/lockScreenUpdate.service b/Perso/systemd_timers/lockScreenUpdate.service new file mode 100644 index 0000000..b78b1f3 --- /dev/null +++ b/Perso/systemd_timers/lockScreenUpdate.service @@ -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' \ No newline at end of file diff --git a/Perso/systemd_timers/lockScreenUpdate.timer b/Perso/systemd_timers/lockScreenUpdate.timer new file mode 100644 index 0000000..5c777f4 --- /dev/null +++ b/Perso/systemd_timers/lockScreenUpdate.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Updates lockscreen background +Requires=lightdm.service +After=lightdm.service + +[Timer] +OnActiveSec=5min + +[Install] +WantedBy=timers.target \ No newline at end of file