From 3899d2fb9fb902cf3398846eaeafb5be07858571 Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 27 Nov 2019 12:35:54 +0100 Subject: [PATCH] systemd: service files for wallpaper changing --- systemd/user/wallpaper.service | 8 ++++++++ systemd/user/wallpaper.timer | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 systemd/user/wallpaper.service create mode 100644 systemd/user/wallpaper.timer diff --git a/systemd/user/wallpaper.service b/systemd/user/wallpaper.service new file mode 100644 index 0000000..5263bde --- /dev/null +++ b/systemd/user/wallpaper.service @@ -0,0 +1,8 @@ +[Unit] +Description=Change wallpaper from unsplash + +[Service] +ExecStart=%h/wallpaper-unsplash.sh + +[Install] +WantedBy=default.target diff --git a/systemd/user/wallpaper.timer b/systemd/user/wallpaper.timer new file mode 100644 index 0000000..1c62615 --- /dev/null +++ b/systemd/user/wallpaper.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Change wallpaper every 10 minutes + +[Timer] +OnBootSec=1min +OnUnitActiveSec=10min + +[Install] +WantedBy=timers.target