diff options
Diffstat (limited to 'wayland')
-rw-r--r-- | wayland/.config/systemd/user/physlock.service | 14 | ||||
-rw-r--r-- | wayland/.config/systemd/user/wl-mpris-idle-inhibit.service | 1 | ||||
-rwxr-xr-x | wayland/install.sh | 11 |
3 files changed, 25 insertions, 1 deletions
diff --git a/wayland/.config/systemd/user/physlock.service b/wayland/.config/systemd/user/physlock.service new file mode 100644 index 0000000..0a8fed6 --- /dev/null +++ b/wayland/.config/systemd/user/physlock.service @@ -0,0 +1,14 @@ +[Unit] +Description=Lightweight linux console locking tool +OnSuccess=unlock.target +PartOf=lock.target +After=lock.target + +[Service] +Type=forking +ExecStart=/usr/bin/physlock -dsm +Restart=on-failure +RestartSec=0 + +[Install] +WantedBy=lock.target diff --git a/wayland/.config/systemd/user/wl-mpris-idle-inhibit.service b/wayland/.config/systemd/user/wl-mpris-idle-inhibit.service index be67705..0e50c6e 100644 --- a/wayland/.config/systemd/user/wl-mpris-idle-inhibit.service +++ b/wayland/.config/systemd/user/wl-mpris-idle-inhibit.service @@ -2,7 +2,6 @@ Description=Idle management daemon for Wayland PartOf=wayland-session.target After=wayland-session.target -ConditionFileIsExecutable=/usr/bin/wl-mpris-idle-inhibit [Service] Type=simple diff --git a/wayland/install.sh b/wayland/install.sh new file mode 100755 index 0000000..00e86c9 --- /dev/null +++ b/wayland/install.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +printf "%s: Installing services\n" "$0" + +for pkgname in physlock wl-mpris-idle-inhibit; do + if command -v "$pkgname" >/dev/null; then + systemctl --user enable --now --no-block $pkgname.service + else + printf "%s: $pkgname not found, skipping...\n" "$0" + fi +done |