added instructions for zzz-user-hooks

This commit is contained in:
Arend 2023-08-25 13:55:35 +02:00
parent e719aa267e
commit cbbbfe4792

View file

@ -32,3 +32,21 @@ 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
```
now `gtlock` will start when you close your laptop