mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 18:49:45 +00:00
Update: betterlockscreen systemd unit file
* Different approach to systemd-suspend lockscreen * Update README.md * Update systemd unit file
This commit is contained in:
parent
e370b88690
commit
6d00aaa094
2 changed files with 19 additions and 2 deletions
17
README.md
17
README.md
|
@ -47,6 +47,23 @@ In this case a random image from the directory is chosen
|
||||||
and converted to a 1920x1080 resolution with the blur factor set to 0.5
|
and converted to a 1920x1080 resolution with the blur factor set to 0.5
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Lockscreen when suspended
|
||||||
|
|
||||||
|
```
|
||||||
|
# move service file to proper dir (the aur package does this for you)
|
||||||
|
cp betterlockscreen@.service /etc/systemd/system/
|
||||||
|
|
||||||
|
# enable systemd service
|
||||||
|
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.
|
||||||
|
```
|
||||||
|
|
||||||
## Installation via AUR package
|
## Installation via AUR package
|
||||||
|
|
||||||
### [release](https://aur.archlinux.org/packages/betterlockscreen/)
|
### [release](https://aur.archlinux.org/packages/betterlockscreen/)
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
Description = Lock screen when going to sleep/suspend
|
Description = Lock screen when going to sleep/suspend
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=user
|
User=%I
|
||||||
Type=forking
|
Type=simple
|
||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
ExecStart=/usr/bin/betterlockscreen --lock
|
ExecStart=/usr/bin/betterlockscreen --lock
|
||||||
TimeoutSec=infinity
|
TimeoutSec=infinity
|
Loading…
Reference in a new issue