diff --git a/LDM-customizer.service b/LDM-customizer.service new file mode 100644 index 0000000..c88f317 --- /dev/null +++ b/LDM-customizer.service @@ -0,0 +1,10 @@ +[Unit] +Description=LightDM wallpaper + +[Service] +Type=oneshot +ExecStart=/home/linux/Documents/Projects/bin/LDM-Wallpaper +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/README.md b/README.md index 87030f0..289f204 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ A script that changes your Light Display Manager's background image. ## Useage -You can create a systemd service for the script or edit `/etc/systemd/system/lightdm.service` by making it execute the `LDM-Wallpaper.sh` (e.g. using `ExecStartPost`). If you use plymouth, edit the `/usr/lib/systemd/system/lightdm-plymouth.service` file instead. +You can copy the systemd unit file to `/usr/lib/systemd/system` then run `systemd enable LDM-customizer.service` Remember to change the paths used in the script.