aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraffficionado <andrhua@pm.me>2021-05-15 23:58:05 +0300
committerGitHub <noreply@github.com>2021-05-15 22:58:05 +0200
commitf208ce1bb15930b97d7e6d12b17b52d91278901c (patch)
tree743c95ad7fafa777003d96019f528a99f72d0bec
parent52a065cfdcd618c0721480b367a09747235fedc9 (diff)
Systemd patch (#163)
* update system service location * update binary location * Add hint for systemd-service and install-dir
-rw-r--r--README.md6
-rw-r--r--system/betterlockscreen@.service2
2 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index e3976d2..bacc3d0 100644
--- a/README.md
+++ b/README.md
@@ -219,10 +219,9 @@ alt + shift + x
```
### Lockscreen when suspended(systemd service)
-
```sh
# move service file to proper dir (the aur package does this for you)
-cp betterlockscreen@.service /etc/systemd/system/
+cp betterlockscreen@.service /usr/lib/systemd/system/
# enable systemd service
systemctl enable betterlockscreen@$USER
@@ -230,12 +229,13 @@ systemctl enable betterlockscreen@$USER
# disable systemd service
systemctl disable betterlockscreen@$USER
-
# Note: Now you can call systemctl suspend to suspend your system
# and betterlockscreen service will be activated
# so when your system wakes your screen will be locked.
```
+**Hint:** The systemd-unit expects betterlockscreen to be installed in "/usr/local/bin", so maybe you want to check or change this!
+
---
### Countributing
diff --git a/system/betterlockscreen@.service b/system/betterlockscreen@.service
index d0674ab..b9ad6fb 100644
--- a/system/betterlockscreen@.service
+++ b/system/betterlockscreen@.service
@@ -7,7 +7,7 @@ Before=suspend.target
User=%I
Type=simple
Environment=DISPLAY=:0
-ExecStart=/usr/bin/betterlockscreen --lock
+ExecStart=/usr/local/bin/betterlockscreen --lock
TimeoutSec=infinity
ExecStartPost=/usr/bin/sleep 1