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