Replaced swayidle with zzz-user-hooks
This commit is contained in:
parent
e719aa267e
commit
31895aa296
1 changed files with 13 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# Idle and lockscreen
|
||||||
|
|
||||||
Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`.
|
Wayfire has a screensaver and dpms option. These may be configured by editing `.config/wayfire.ini`.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -20,15 +22,21 @@ Logically, `timeout_dpms` > `timeout_screensaver`.
|
||||||
# ln -s /etc/greetd/config/gtkgreet.css .config/gtklock/style.css
|
# ln -s /etc/greetd/config/gtkgreet.css .config/gtklock/style.css
|
||||||
```
|
```
|
||||||
|
|
||||||
To initiate `gtklock` before sleep and after a certain time, `swayidle` may be used.
|
To initiate `gtklock` on suspend, `zzz-user-hooks` may be used.
|
||||||
|
|
||||||
```
|
```
|
||||||
# xbps-install -Sy swayidle
|
# xbps-install -Sy zzz-user-hooks
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, in `.config/wayfire.ini` gtklock may be started with the given conditions:
|
To let `zzz-user-hooks` execute `gtklock` on suspend create and edit the file `.onsuspend`.
|
||||||
|
|
||||||
```
|
```
|
||||||
[autostart]
|
#!/bin/sh
|
||||||
idle = swayidle -w timeout 590 gtklock before-sleep gtklock
|
exec gtklock -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To make the file executable.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ chmod 755 .onsuspend
|
||||||
|
```
|
Loading…
Reference in a new issue