systemd unit

This commit is contained in:
array-in-a-matrix 2022-08-27 11:56:34 -04:00
parent 1af53660d5
commit a246a8e32c
2 changed files with 11 additions and 1 deletions

10
LDM-customizer.service Normal file
View File

@ -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

View File

@ -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.