From a246a8e32c016530244e71341145c217eb2852bd Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Sat, 27 Aug 2022 11:56:34 -0400 Subject: [PATCH] systemd unit --- LDM-customizer.service | 10 ++++++++++ README.md | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 LDM-customizer.service 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.