added instructions for zzz-user-hooks #2
1 changed files with 58 additions and 34 deletions
|
@ -32,3 +32,27 @@ Then, in `.config/wayfire.ini` gtklock may be started with the given conditions:
|
|||
[autostart]
|
||||
idle = swayidle -w timeout 590 gtklock before-sleep gtklock
|
||||
```
|
||||
|
||||
# laptops
|
||||
|
||||
On laptops it may be necessary to install `zzz user hooks` to make sure that when the laptop closes `gktlock` also starts
|
||||
|
||||
```
|
||||
# xbps-install -Sy zzz-user-hooks
|
||||
```
|
||||
|
||||
To configure `zzz user hooks` you need to make a file and edit the file `~/.onsuspend` and add
|
||||
|
||||
```
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
gtklock -dS
|
||||
```
|
||||
|
||||
Then make the file executable
|
||||
|
||||
```
|
||||
$ chmod +x .onsuspend
|
||||
```
|
||||
|
||||
now `gtlock` will start when you close your laptop
|
Loading…
Reference in a new issue