From f5428b9a0e8ef7e4c4cd494b033fc7da21b76b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 9 Oct 2023 14:49:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(systemd):=20service=20to=20cha?= =?UTF-8?q?nge=20wallpaper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the wallpaper will be changed every 2 hours --- .config/systemd/user/change_wallpaper.service | 9 +++++++++ .config/systemd/user/change_wallpaper.timer | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .config/systemd/user/change_wallpaper.service create mode 100644 .config/systemd/user/change_wallpaper.timer diff --git a/.config/systemd/user/change_wallpaper.service b/.config/systemd/user/change_wallpaper.service new file mode 100644 index 00000000..5af5f94a --- /dev/null +++ b/.config/systemd/user/change_wallpaper.service @@ -0,0 +1,9 @@ +[Unit] +Description=Change wallpaper with swww as backend + +[Service] +Type=simple +ExecStart=/home/matt/.config/hypr/scripts/random_wallpaper + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/change_wallpaper.timer b/.config/systemd/user/change_wallpaper.timer new file mode 100644 index 00000000..ffc7a563 --- /dev/null +++ b/.config/systemd/user/change_wallpaper.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Timer to change the wallpaper each 2 hours + +[Timer] +OnBootSec=0min +OnCalendar=0/2:00:00 +Unit=change_wallpaper.service + +[Install] +WantedBy=timers.target