✨ feat(systemd): service to change wallpaper
the wallpaper will be changed every 2 hours
This commit is contained in:
parent
a99bc5f1c6
commit
f5428b9a0e
2 changed files with 19 additions and 0 deletions
9
.config/systemd/user/change_wallpaper.service
Normal file
9
.config/systemd/user/change_wallpaper.service
Normal file
|
@ -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
|
10
.config/systemd/user/change_wallpaper.timer
Normal file
10
.config/systemd/user/change_wallpaper.timer
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue