mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 10:39:45 +00:00
Systemd patch (#163)
* update system service location * update binary location * Add hint for systemd-service and install-dir
This commit is contained in:
parent
52a065cfdc
commit
f208ce1bb1
2 changed files with 4 additions and 4 deletions
|
@ -219,10 +219,9 @@ alt + shift + x
|
||||||
```
|
```
|
||||||
|
|
||||||
### Lockscreen when suspended(systemd service)
|
### Lockscreen when suspended(systemd service)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# move service file to proper dir (the aur package does this for you)
|
# 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
|
# enable systemd service
|
||||||
systemctl enable betterlockscreen@$USER
|
systemctl enable betterlockscreen@$USER
|
||||||
|
@ -230,12 +229,13 @@ systemctl enable betterlockscreen@$USER
|
||||||
# disable systemd service
|
# disable systemd service
|
||||||
systemctl disable betterlockscreen@$USER
|
systemctl disable betterlockscreen@$USER
|
||||||
|
|
||||||
|
|
||||||
# Note: Now you can call systemctl suspend to suspend your system
|
# Note: Now you can call systemctl suspend to suspend your system
|
||||||
# and betterlockscreen service will be activated
|
# and betterlockscreen service will be activated
|
||||||
# so when your system wakes your screen will be locked.
|
# 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
|
### Countributing
|
||||||
|
|
|
@ -7,7 +7,7 @@ Before=suspend.target
|
||||||
User=%I
|
User=%I
|
||||||
Type=simple
|
Type=simple
|
||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
ExecStart=/usr/bin/betterlockscreen --lock
|
ExecStart=/usr/local/bin/betterlockscreen --lock
|
||||||
TimeoutSec=infinity
|
TimeoutSec=infinity
|
||||||
ExecStartPost=/usr/bin/sleep 1
|
ExecStartPost=/usr/bin/sleep 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue